Package org.bouncycastle.jce.provider
Class X509CertificateObject
java.lang.Object
java.security.cert.Certificate
java.security.cert.X509Certificate
org.bouncycastle.jce.provider.X509CertificateObject
- All Implemented Interfaces:
Serializable,X509Extension,PKCS12BagAttributeCarrier
Deprecated.
Do not use this class directly - either use org.bouncycastle.cert (bcpkix) or CertificateFactory.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.security.cert.Certificate
Certificate.CertificateRep -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidcheckValidity(Date date) Deprecated.booleanDeprecated.Deprecated.Deprecated.intDeprecated.Deprecated.byte[]Deprecated.Deprecated.byte[]getExtensionValue(String oid) Deprecated.Deprecated.Deprecated.boolean[]Deprecated.Deprecated.boolean[]Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.return a more "meaningful" representation for the signature algorithm used in the certficate.Deprecated.return the object identifier for the signature.byte[]Deprecated.return the signature parameters, or null if there aren't any.byte[]Deprecated.Deprecated.Deprecated.boolean[]Deprecated.Deprecated.byte[]Deprecated.intDeprecated.booleanDeprecated.inthashCode()Deprecated.booleanDeprecated.voidsetBagAttribute(ASN1ObjectIdentifier oid, ASN1Encodable attribute) Deprecated.voidsetFriendlyName(String friendlyName) Deprecated.toString()Deprecated.final voidDeprecated.final voidDeprecated.final voidDeprecated.Methods inherited from class java.security.cert.Certificate
getType, writeReplace
-
Constructor Details
-
X509CertificateObject
Deprecated.- Throws:
CertificateParsingException
-
-
Method Details
-
checkValidity
Deprecated.- Specified by:
checkValidityin classX509Certificate- Throws:
CertificateExpiredExceptionCertificateNotYetValidException
-
checkValidity
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException Deprecated.- Specified by:
checkValidityin classX509Certificate- Throws:
CertificateExpiredExceptionCertificateNotYetValidException
-
getVersion
public int getVersion()Deprecated.- Specified by:
getVersionin classX509Certificate
-
getSerialNumber
Deprecated.- Specified by:
getSerialNumberin classX509Certificate
-
getIssuerDN
Deprecated.- Specified by:
getIssuerDNin classX509Certificate
-
getIssuerX500Principal
Deprecated.- Overrides:
getIssuerX500Principalin classX509Certificate
-
getSubjectDN
Deprecated.- Specified by:
getSubjectDNin classX509Certificate
-
getSubjectX500Principal
Deprecated.- Overrides:
getSubjectX500Principalin classX509Certificate
-
getNotBefore
Deprecated.- Specified by:
getNotBeforein classX509Certificate
-
getNotAfter
Deprecated.- Specified by:
getNotAfterin classX509Certificate
-
getTBSCertificate
Deprecated.- Specified by:
getTBSCertificatein classX509Certificate- Throws:
CertificateEncodingException
-
getSignature
public byte[] getSignature()Deprecated.- Specified by:
getSignaturein classX509Certificate
-
getSigAlgName
Deprecated.return a more "meaningful" representation for the signature algorithm used in the certficate.- Specified by:
getSigAlgNamein classX509Certificate
-
getSigAlgOID
Deprecated.return the object identifier for the signature.- Specified by:
getSigAlgOIDin classX509Certificate
-
getSigAlgParams
public byte[] getSigAlgParams()Deprecated.return the signature parameters, or null if there aren't any.- Specified by:
getSigAlgParamsin classX509Certificate
-
getIssuerUniqueID
public boolean[] getIssuerUniqueID()Deprecated.- Specified by:
getIssuerUniqueIDin classX509Certificate
-
getSubjectUniqueID
public boolean[] getSubjectUniqueID()Deprecated.- Specified by:
getSubjectUniqueIDin classX509Certificate
-
getKeyUsage
public boolean[] getKeyUsage()Deprecated.- Specified by:
getKeyUsagein classX509Certificate
-
getExtendedKeyUsage
Deprecated.- Overrides:
getExtendedKeyUsagein classX509Certificate- Throws:
CertificateParsingException
-
getBasicConstraints
public int getBasicConstraints()Deprecated.- Specified by:
getBasicConstraintsin classX509Certificate
-
getSubjectAlternativeNames
Deprecated.- Overrides:
getSubjectAlternativeNamesin classX509Certificate- Throws:
CertificateParsingException
-
getIssuerAlternativeNames
Deprecated.- Overrides:
getIssuerAlternativeNamesin classX509Certificate- Throws:
CertificateParsingException
-
getCriticalExtensionOIDs
Deprecated.- Specified by:
getCriticalExtensionOIDsin interfaceX509Extension
-
getExtensionValue
Deprecated.- Specified by:
getExtensionValuein interfaceX509Extension
-
getNonCriticalExtensionOIDs
Deprecated.- Specified by:
getNonCriticalExtensionOIDsin interfaceX509Extension
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()Deprecated.- Specified by:
hasUnsupportedCriticalExtensionin interfaceX509Extension
-
getPublicKey
Deprecated.- Specified by:
getPublicKeyin classCertificate
-
getEncoded
Deprecated.- Specified by:
getEncodedin classCertificate- Throws:
CertificateEncodingException
-
equals
Deprecated.- Overrides:
equalsin classCertificate
-
hashCode
public int hashCode()Deprecated.- Overrides:
hashCodein classCertificate
-
setBagAttribute
Deprecated.- Specified by:
setBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttribute
Deprecated.- Specified by:
getBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
Deprecated.- Specified by:
getBagAttributeKeysin interfacePKCS12BagAttributeCarrier
-
hasFriendlyName
public boolean hasFriendlyName()Deprecated.- Specified by:
hasFriendlyNamein interfacePKCS12BagAttributeCarrier
-
setFriendlyName
Deprecated.- Specified by:
setFriendlyNamein interfacePKCS12BagAttributeCarrier
-
toString
Deprecated.- Specified by:
toStringin classCertificate
-
verify
public final void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Deprecated.- Specified by:
verifyin classCertificate- Throws:
CertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureException
-
verify
public final void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException Deprecated.- Specified by:
verifyin classCertificate- Throws:
CertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureException
-
verify
public final void verify(PublicKey key, Provider sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, SignatureException Deprecated.- Overrides:
verifyin classX509Certificate- Throws:
CertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionSignatureException
-