issrg.ac.attributes
Class IssuedOnBehalfOf

java.lang.Object
  extended by issrg.ac.Extension
      extended by issrg.ac.attributes.IssuedOnBehalfOf
All Implemented Interfaces:
java.lang.Cloneable

public class IssuedOnBehalfOf
extends Extension
implements java.lang.Cloneable

Author:
anhnt

Field Summary
static java.lang.String ISSUED_ON_BEHALF_OF_OID
          The string stores the standard OID for the IssuedOnBehalfOf extension: 2.5.29.64
 
Fields inherited from class issrg.ac.Extension
critical, extnID, Null, theObject
 
Constructor Summary
IssuedOnBehalfOf(boolean critical, iaik.asn1.structures.GeneralName iobo)
          Creates a new instance of IssuedOnBehalfOf based on paramters.
IssuedOnBehalfOf(IssuedOnBehalfOf e)
          Creates a new instance of IssuedOnBehalfOf based on an existing IssuedOnBehalfOf extension
 
Method Summary
 java.lang.Object clone()
           
 void decodeValue(ASN1Object ao)
          This methods decodes an ASN1Object to get an extension value of the IssuedOnBehalfOf object.
 ASN1Object encodeValue()
          This method encodes the extension value of the IssuedOnBehalfOf object to an ASN1Object.
 java.lang.String extensionValueToString(java.lang.String indent)
          This method returns a string that represents the requestor's DN in the form: "IssuedOnBehalfOf" + requestor's DN This method is used for debuging purposes
 GeneralName getIssuedOnBehalfOf()
          This method returns a GeneralName object that represents the requestor
 java.lang.String getIssuerDN()
          This method returns the requestor's DN
static void registerMe()
          This method registers this extension as an extension with a specific OID.
 void setIssuedOnBehalfOf(GeneralName gn)
          This method is used for setting the GeneralName of the requester.
 void setIssuerDN(java.lang.String dn)
          This method set the requester's DN.
 
Methods inherited from class issrg.ac.Extension
decode, getExtensionOID, getExtensionValue, isCritical, setCritical, setExtensionOID, setExtensionValue, toASN1Object, toString, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ISSUED_ON_BEHALF_OF_OID

public static final java.lang.String ISSUED_ON_BEHALF_OF_OID
The string stores the standard OID for the IssuedOnBehalfOf extension: 2.5.29.64

See Also:
Constant Field Values
Constructor Detail

IssuedOnBehalfOf

public IssuedOnBehalfOf(IssuedOnBehalfOf e)
                 throws iaik.asn1.CodingException
Creates a new instance of IssuedOnBehalfOf based on an existing IssuedOnBehalfOf extension

Parameters:
e - is an existing IssuedOnBehalfOf extension
Throws:
iaik.asn1.CodingException

IssuedOnBehalfOf

public IssuedOnBehalfOf(boolean critical,
                        iaik.asn1.structures.GeneralName iobo)
Creates a new instance of IssuedOnBehalfOf based on paramters.

Parameters:
critical - is a boolean value. It is a flag of the extension that tells the criticality of the extension.
iobo - is a GeneralName object that stores the ID of the requester.
Method Detail

registerMe

public static void registerMe()
This method registers this extension as an extension with a specific OID. After it has been registered, Extensions can recognise the extension with this OID.


clone

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

encodeValue

public ASN1Object encodeValue()
                       throws CodingException
This method encodes the extension value of the IssuedOnBehalfOf object to an ASN1Object.

Overrides:
encodeValue in class Extension
Returns:
an ASN1Object.
Throws:
CodingException

decodeValue

public void decodeValue(ASN1Object ao)
                 throws CodingException
This methods decodes an ASN1Object to get an extension value of the IssuedOnBehalfOf object.

Overrides:
decodeValue in class Extension
Parameters:
ao - is an ASN1Object to be decoded.
Throws:
CodingException

setIssuedOnBehalfOf

public void setIssuedOnBehalfOf(GeneralName gn)
This method is used for setting the GeneralName of the requester.

Parameters:
gn - is the GeneralName of the requester.

setIssuerDN

public void setIssuerDN(java.lang.String dn)
                 throws iaik.utils.RFC2253NameParserException
This method set the requester's DN. It also creates a GeneralName object according to this DN.

Parameters:
dn - is a string that represents the requester's DN.
Throws:
iaik.utils.RFC2253NameParserException

getIssuerDN

public java.lang.String getIssuerDN()
This method returns the requestor's DN

Returns:
a string that represents the requestor's DN

getIssuedOnBehalfOf

public GeneralName getIssuedOnBehalfOf()
This method returns a GeneralName object that represents the requestor

Returns:
a GeneralName object

extensionValueToString

public java.lang.String extensionValueToString(java.lang.String indent)
This method returns a string that represents the requestor's DN in the form: "IssuedOnBehalfOf" + requestor's DN This method is used for debuging purposes

Overrides:
extensionValueToString in class Extension
Parameters:
indent - - the indentation to use at the beginning of each line to make the text human-friendly
Returns:
a string that represents the requestor's DN