com.entrust.toolkit.asn1.structures
Class SubjectPublicKeyInfo

java.lang.Object
  |
  +--com.entrust.toolkit.asn1.structures.SubjectPublicKeyInfo

public class SubjectPublicKeyInfo
extends java.lang.Object
implements ASN1Type


Constructor Summary
SubjectPublicKeyInfo()
           
 
Method Summary
 void decode(ASN1Object obj)
          Decodes an ASN1Object according to the ASN.1 type the class implements.
 AlgorithmID getAlgorithm()
           
 BIT_STRING getSubjectPublicKey()
           
 void setAlgorithm(AlgorithmID algorithm)
           
 void setSubjectPublicKey(BIT_STRING subjectPublicKey)
           
 ASN1Object toASN1Object()
          Creates an ASN1Object according to the ASN.1 type the class implements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubjectPublicKeyInfo

public SubjectPublicKeyInfo()
Method Detail

toASN1Object

public ASN1Object toASN1Object()
                        throws CodingException
Description copied from interface: ASN1Type
Creates an ASN1Object according to the ASN.1 type the class implements.
Specified by:
toASN1Object in interface ASN1Type
Tags copied from interface: ASN1Type
Returns:
the created ASN1Object
Throws:
CodingException - if an de/encoding error occurs

setAlgorithm

public void setAlgorithm(AlgorithmID algorithm)

getAlgorithm

public AlgorithmID getAlgorithm()

setSubjectPublicKey

public void setSubjectPublicKey(BIT_STRING subjectPublicKey)

getSubjectPublicKey

public BIT_STRING getSubjectPublicKey()

decode

public void decode(ASN1Object obj)
            throws CodingException
Description copied from interface: ASN1Type
Decodes an ASN1Object according to the ASN.1 type the class implements.
Specified by:
decode in interface ASN1Type
Tags copied from interface: ASN1Type
Parameters:
obj - the ASN.1 type as ASN1Object
Throws:
CodingException - if the ASN1Object could not be parsed