iaik.asn1
Interface ASN1Type

All Known Implementing Classes:
AlgorithmID, CertTemplateCMP, Extension, PMACVALUE, SubjectPublicKeyInfo, Time, Validity, AccessDescription, GeneralNames, GeneralSubtree, RDN, PolicyMapping, Attribute, Name, AVA, RecipientInfo, DigestInfo, SignerInfo, PrivateKeyInfo, EncryptedPrivateKeyInfo, AuthenticatedSafe, SafeBag, PublicKeyInfo, IaikPBEParameterSpec, X509Certificate, X509CRL

public interface ASN1Type

Interface for objects, which implement an ASN.1 type. A class which implements this interface is able to parse and create an ASN1Object.


Method Summary
 void decode(ASN1Object obj)
          Decodes an ASN1Object according to the ASN.1 type the class implements.
 ASN1Object toASN1Object()
          Creates an ASN1Object according to the ASN.1 type the class implements.
 

Method Detail

decode

public void decode(ASN1Object obj)
            throws CodingException
Decodes an ASN1Object according to the ASN.1 type the class implements.
Parameters:
obj - the ASN.1 type as ASN1Object
Throws:
CodingException - if the ASN1Object could not be parsed

toASN1Object

public ASN1Object toASN1Object()
                        throws CodingException
Creates an ASN1Object according to the ASN.1 type the class implements.
Returns:
the created ASN1Object
Throws:
CodingException - if an de/encoding error occurs