Package org.gudy.bouncycastle.asn1
Class ASN1Encodable
- java.lang.Object
-
- org.gudy.bouncycastle.asn1.ASN1Encodable
-
- All Implemented Interfaces:
DEREncodable
- Direct Known Subclasses:
AccessDescription
,AlgorithmIdentifier
,AttCertIssuer
,AttCertValidityPeriod
,Attribute
,AttributeCertificate
,AttributeCertificateInfo
,AuthorityInformationAccess
,AuthorityKeyIdentifier
,BasicConstraints
,CertificateList
,CertificatePair
,CertificatePolicies
,ContentInfo
,CRLDistPoint
,DERObject
,DigestInfo
,DisplayText
,DistributionPoint
,DistributionPointName
,DSAParameter
,ECPrivateKeyStructure
,ExtendedKeyUsage
,GeneralName
,GeneralNames
,GeneralSubtree
,Holder
,IetfAttrSyntax
,IssuerSerial
,IssuingDistributionPoint
,NameConstraints
,NoticeReference
,ObjectDigestInfo
,PolicyInformation
,PolicyMappings
,PolicyQualifierInfo
,PrivateKeyInfo
,PrivateKeyUsagePeriod
,RoleSyntax
,RSAPrivateKeyStructure
,RSAPublicKeyStructure
,SubjectDirectoryAttributes
,SubjectKeyIdentifier
,SubjectPublicKeyInfo
,Target
,TargetInformation
,Targets
,TBSCertificateStructure
,TBSCertList
,TBSCertList.CRLEntry
,Time
,UserNotice
,V2Form
,X509Attribute
,X509CertificateStructure
,X509Extensions
,X509Name
public abstract class ASN1Encodable extends java.lang.Object implements DEREncodable
-
-
Constructor Summary
Constructors Constructor Description ASN1Encodable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
byte[]
getDEREncoded()
Return the DER encoding of the object, null if the DER encoding can not be made.DERObject
getDERObject()
byte[]
getEncoded()
byte[]
getEncoded(java.lang.String encoding)
int
hashCode()
abstract DERObject
toASN1Object()
-
-
-
Field Detail
-
DER
public static final java.lang.String DER
- See Also:
- Constant Field Values
-
BER
public static final java.lang.String BER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEncoded
public byte[] getEncoded() throws java.io.IOException
- Throws:
java.io.IOException
-
getEncoded
public byte[] getEncoded(java.lang.String encoding) throws java.io.IOException
- Throws:
java.io.IOException
-
getDEREncoded
public byte[] getDEREncoded()
Return the DER encoding of the object, null if the DER encoding can not be made.- Returns:
- a DER byte array, null otherwise.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getDERObject
public DERObject getDERObject()
- Specified by:
getDERObject
in interfaceDEREncodable
-
toASN1Object
public abstract DERObject toASN1Object()
-
-