|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectissrg.ac.AttributeValue
issrg.ac.DistinctAttribute
issrg.ac.attributes.PermisRole
public class PermisRole
This is a class for ASN.1 representation of the Permis Role value (singular). Note that the Attribute implementation will deal with multiple values and instantiate an appropriate value object for each of those.
This Attribute cannot be registered just with one OID, because it represents the whole class of attributes that are just printable strings.
Field Summary | |
---|---|
protected java.lang.String |
roleValue
This is the string Name of the role of the given type |
Fields inherited from class issrg.ac.AttributeValue |
---|
data |
Constructor Summary | |
---|---|
protected |
PermisRole()
|
|
PermisRole(iaik.asn1.ASN1Object ao)
This constructor builds a single PermisRole, given an ASN1Object of its single value. |
|
PermisRole(AttributeValue av)
This constructor builds a PermisRole given a parsed AttributeValue. |
|
PermisRole(PermisRole pr)
This constructor copies a given PermisRole. |
|
PermisRole(java.lang.String roleValue)
This constructor creates a PermisRole given its String value. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
void |
decode(iaik.asn1.ASN1Object ao)
This method decodes a given ASN1Object and upon successful decoding sets the role value as contained in the ASN1Object. |
java.lang.String |
getRoleValue()
Returns the Role Value. |
static void |
registerMe(java.lang.String oid)
This method registers PermisRole as a value of attributes with a specific OID. |
void |
setRoleValue(java.lang.String role)
Sets the Role Value. |
iaik.asn1.ASN1Object |
toASN1Object()
This method returns the ASN1Object representing PermisRole attribute value. |
java.lang.String |
toString(java.lang.String indent)
|
Methods inherited from class issrg.ac.DistinctAttribute |
---|
isDecoded, registerMe |
Methods inherited from class issrg.ac.AttributeValue |
---|
getRawAttribute, toString |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.lang.String roleValue
Constructor Detail |
---|
protected PermisRole()
public PermisRole(iaik.asn1.ASN1Object ao) throws iaik.asn1.CodingException
ao
- - the ASN1Object representing a single value
iaik.asn1.CodingException
public PermisRole(AttributeValue av) throws iaik.asn1.CodingException
av
- - the AttributeValue that represents PermisRole
iaik.asn1.CodingException
public PermisRole(PermisRole pr)
pr
- - the PermisRole to copypublic PermisRole(java.lang.String roleValue)
roleValue
- - the role valueMethod Detail |
---|
public java.lang.String getRoleValue()
public void setRoleValue(java.lang.String role)
role
- - the role valuepublic iaik.asn1.ASN1Object toASN1Object() throws iaik.asn1.CodingException
toASN1Object
in interface iaik.asn1.ASN1Type
toASN1Object
in class AttributeValue
iaik.asn1.CodingException
public void decode(iaik.asn1.ASN1Object ao) throws iaik.asn1.CodingException
decode
in interface iaik.asn1.ASN1Type
decode
in class AttributeValue
ao
- - ASN1Object to decode; must be a PrintableString
iaik.asn1.CodingException
public java.lang.String toString(java.lang.String indent)
toString
in class AttributeValue
public java.lang.Object clone()
clone
in class AttributeValue
public static void registerMe(java.lang.String oid)
oid
- - the dotted form of the OID of the attribute that represents
a PermisRole
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |