asn1 library

Classes

ASN1AlgorithmIdentifier
AlgorithmIdentifier ::= SEQUENCE { algorithm OBJECT IDENTIFIER, parameters ANY DEFINED BY algorithm OPTIONAL }
ASN1AttributeTypeAndValue
AttributeTypeAndValue ::= SEQUENCE { type AttributeType, value AttributeValue }
ASN1AuthenticatedSafe
Taken from RFC 7292.
ASN1BitString
An ASN1 Bit String object
ASN1BMPString
An ASN1 IA5 String object
ASN1Boolean
An ASN1 Boolean object
ASN1CertBag
CertBag ::= SEQUENCE { certId BAG-TYPE.&id ({CertTypes}), certValue [0] EXPLICIT BAG-TYPE.&Type ({CertTypes}{@certId}) }
ASN1CertificationRequest
CertificationRequest ::= SEQUENCE { certificationRequestInfo CertificationRequestInfo, signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, signature BIT STRING }
ASN1CertificationRequestInfo
CertificationRequestInfo ::= SEQUENCE { version INTEGER { v1(0) } (v1,...), subject Name, subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, attributes [0] Attributes{{ CRIAttributes }} }
ASN1ContentInfo
ContentInfo ::= SEQUENCE { contentType ContentType, content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL }
ASN1DigestInfo
DigestInfo ::= SEQUENCE { digestAlgorithm DigestAlgorithmIdentifier, digest Digest } Digest ::= OCTET STRING
ASN1EncryptedContentInfo
EncryptedContentInfo ::= SEQUENCE { contentType ContentType, contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL }
ASN1EncryptedData
EncryptedData ::= SEQUENCE { version Version, encryptedContentInfo EncryptedContentInfo }
ASN1EncryptedPrivateKeyInfo
ASN1Enumerated
An ASN1Enumerated object
ASN1GeneralizedTime
ASN1IA5String
An ASN1 IA5 String object
ASN1Integer
ASN1KeyBag
KeyBag ::= PrivateKeyInfo
ASN1MacData
MacData ::= SEQUENCE { mac DigestInfo, macSalt OCTET STRING, iterations INTEGER DEFAULT 1 }
ASN1Name
Name ::= CHOICE { -- only one possibility for now -- rdnSequence RDNSequence } RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
ASN1Null
An ASN1 Null object
ASN1Object
Base model for all ASN1Objects
ASN1ObjectIdentifier
ASN1OctetString
An ASN1 Octed String object
ASN1Parser
The ASN1Parser to parse bytes into ASN1 Objects
ASN1Pfx
PFX ::= SEQUENCE { version INTEGER {v3(3)}(v3,...), authSafe ContentInfo, macData MacData OPTIONAL }
ASN1Pkcs12Attribute
PKCS12Attribute ::= SEQUENCE { attrId ATTRIBUTE.&id ({PKCS12AttrSet}), attrValues SET OF ATTRIBUTE.&Type ({PKCS12AttrSet}{@attrId}) }
ASN1PrintableString
An ASN1 Printable String object
ASN1PrivateKeyInfo
PrivateKeyInfo ::= OneAsymmetricKey OneAsymmetricKey ::= SEQUENCE { version Version, privateKeyAlgorithm PrivateKeyAlgorithmIdentifier, privateKey PrivateKey, attributes [0] Attributes OPTIONAL, ..., [[2: publicKey [1] PublicKey OPTIONAL ]], ... }
ASN1RDN
RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue
ASN1SafeBag
SafeBag ::= SEQUENCE { bagId BAG-TYPE.&id ({PKCS12BagSet}) bagValue [0] EXPLICIT BAG-TYPE.&Type({PKCS12BagSet}{@bagId}), bagAttributes SET OF PKCS12Attribute OPTIONAL }
ASN1SafeContents
SafeContents ::= SEQUENCE OF SafeBag
ASN1Sequence
ASN1Set
ASN1SubjectPublicKeyInfo
SubjectPublicKeyInfo { ALGORITHM : IOSet} ::= SEQUENCE { algorithm AlgorithmIdentifier {{IOSet}}, subjectPublicKey BIT STRING }
ASN1Tags
Class holding all ASN1 BER tags, supported by this package
ASN1TeletextString
An ASN1 Octed String object
ASN1UtcTime
An ASN1 Utc Time object
ASN1UTF8String
An ASN1 UTF8 String object
ASN1Utils
Utils class holding different methods to ease the handling of ANS1Objects and their byte representation.

Exceptions / Errors

UnsupportedAsn1EncodingRuleException
Exception that indicates that the given ASN1EncodingRule is not supported
UnsupportedASN1TagException
Exception that indicates that the given tag is not supported