issrg.ac.attributes
Class PermisRole

java.lang.Object
  extended by issrg.ac.AttributeValue
      extended by issrg.ac.DistinctAttribute
          extended by issrg.ac.attributes.PermisRole
All Implemented Interfaces:
java.lang.Cloneable

public class PermisRole
extends DistinctAttribute

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(ASN1Object ao)
          This constructor builds a single PermisRole, given an ASN1Object of its single value.
 
Method Summary
 java.lang.Object clone()
           
 void decode(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.
 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

roleValue

protected java.lang.String roleValue
This is the string Name of the role of the given type

Constructor Detail

PermisRole

protected PermisRole()

PermisRole

public PermisRole(ASN1Object ao)
           throws CodingException
This constructor builds a single PermisRole, given an ASN1Object of its single value.

Parameters:
ao - - the ASN1Object representing a single value
Throws:
CodingException
Method Detail

getRoleValue

public java.lang.String getRoleValue()
Returns the Role Value.


setRoleValue

public void setRoleValue(java.lang.String role)
Sets the Role Value.

Parameters:
role - - the role value

toASN1Object

public ASN1Object toASN1Object()
                        throws CodingException
This method returns the ASN1Object representing PermisRole attribute value.

Overrides:
toASN1Object in class AttributeValue
Returns:
PrintableString with the role value
Throws:
CodingException

decode

public void decode(ASN1Object ao)
            throws CodingException
This method decodes a given ASN1Object and upon successful decoding sets the role value as contained in the ASN1Object.

Overrides:
decode in class AttributeValue
Parameters:
ao - - ASN1Object to decode; must be a PrintableString
Throws:
CodingException

toString

public java.lang.String toString(java.lang.String indent)
Overrides:
toString in class AttributeValue

clone

public java.lang.Object clone()
Overrides:
clone in class AttributeValue

registerMe

public static void registerMe(java.lang.String oid)
This method registers PermisRole as a value of attributes with a specific OID. After PermisRole has been registered, Attribute can recognise the attributes with this OID and use PermisRole to parse the individual values of that attribute.

Parameters:
oid - - the dotted form of the OID of the attribute that represents a PermisRole