org.bouncycastle.asn1

Class ASN1Encodable

Implemented Interfaces:
DEREncodable
Known Direct Subclasses:
AccessDescription, Accuracy, AlgorithmIdentifier, AttCertIssuer, AttCertValidityPeriod, Attribute, Attribute, Attribute, AttributeCertificate, AttributeCertificateInfo, AuthenticatedSafe, AuthorityInformationAccess, AuthorityKeyIdentifier, BasicConstraints, BasicOCSPResponse, BiometricData, CAST5CBCParameters, CertBag, CertificateList, CertificatePolicies, CertificationRequest, CertificationRequestInfo, CertID, CertStatus, CommitmentTypeIndication, CommitmentTypeQualifier, CompressedData, ContentIdentifier, ContentInfo, ContentInfo, CrlID, CRLDistPoint, DataGroupHash, DERObject, DHParameter, DigestInfo, DisplayText, DistributionPoint, DistributionPointName, DSAParameter, ECGOST3410ParamSetParameters, ECPrivateKeyStructure, ElGamalParameter, EncryptedContentInfo, EncryptedData, EncryptedPrivateKeyInfo, EnvelopedData, ESSCertID, ExtendedKeyUsage, GeneralName, GeneralNames, GeneralSubtree, GOST28147Parameters, GOST3410ParamSetParameters, GOST3410PublicKeyAlgParameters, Holder, IDEACBCPar, IetfAttrSyntax, Iso4217CurrencyCode, IssuerAndSerialNumber, IssuerAndSerialNumber, IssuerSerial, IssuingDistributionPoint, KeyAgreeRecipientInfo, KeySpecificInfo, KeyTransRecipientInfo, KEKIdentifier, KEKRecipientInfo, LDSSecurityObject, MacData, MessageImprint, MonetaryValue, NameConstraints, NetscapeCertRequest, NoticeReference, ObjectDigestInfo, OCSPRequest, OCSPResponse, OriginatorIdentifierOrKey, OriginatorInfo, OriginatorPublicKey, OtherCertID, OtherInfo, OtherKeyAttribute, OtherRecipientInfo, OtherSigningCertificate, PasswordRecipientInfo, PBES2Parameters, PBKDF2Params, Pfx, PKCS12PBEParams, PKIFreeText, PKIStatusInfo, PolicyInformation, PolicyMappings, PolicyQualifierInfo, PrivateKeyInfo, PublicKeyAndChallenge, QCStatement, RC2CBCParameter, RecipientIdentifier, RecipientInfo, RecipientKeyIdentifier, Request, ResponderID, ResponseBytes, ResponseData, RevokedInfo, RoleSyntax, RSAESOAEPparams, RSAPrivateKeyStructure, RSAPublicKeyStructure, RSASSAPSSparams, SafeBag, SemanticsInformation, ServiceLocator, Signature, SignedData, SignedData, SignedPublicKeyAndChallenge, SignerIdentifier, SignerInfo, SignerInfo, SignerLocation, SigningCertificate, SingleResponse, SMIMECapabilities, SMIMECapability, SubjectKeyIdentifier, SubjectPublicKeyInfo, TBSCertificateStructure, TBSCertList, TBSCertList.CRLEntry, TBSRequest, Time, Time, TimeStampReq, TimeStampResp, TSTInfo, TypeOfBiometricData, UserNotice, V2Form, X509Attribute, X509CertificateStructure, X509Extensions, X509KeyUsage, X509Name, X962Parameters, X9Curve, X9ECParameters, X9ECPoint, X9FieldElement, X9FieldID

public abstract class ASN1Encodable
extends java.lang.Object
implements DEREncodable

Field Summary

static String
BER
static String
DER

Method Summary

boolean
equals(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(String encoding)
int
hashCode()
abstract DERObject
toASN1Object()

Field Details

BER

public static final String BER

DER

public static final String DER

Method Details

equals

public boolean equals(Object o)

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.

getDERObject

public DERObject getDERObject()
Specified by:
getDERObject in interface DEREncodable

getEncoded

public byte[] getEncoded()
            throws IOException

getEncoded

public byte[] getEncoded(String encoding)
            throws IOException

hashCode

public int hashCode()

toASN1Object

public abstract DERObject toASN1Object()