Class X509CertificateObject
java.lang.Object
java.security.cert.Certificate
java.security.cert.X509Certificate
org.gudy.bouncycastle.jce.provider.X509CertificateObject
- All Implemented Interfaces:
Serializable, X509Extension, DEREncodablePREVIEW, PKCS12BagAttributeCarrier
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class Certificate
Certificate.CertificateRep -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate X509CertificateStructureprivate Hashtableprivate Vector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcheckValidity(Date date) intbyte[]private byte[]getExtensionBytes(String oid) byte[]getExtensionValue(String oid) boolean[]boolean[]return a more "meaningful" representation for the signature algorithm used in the certficate.return the object identifier for the signature.byte[]return the signature parameters, or null if there aren't any.byte[]boolean[]byte[]intbooleanvoidsetBagAttribute(DERObjectIdentifier oid, DEREncodable attribute) toString()final voidfinal voidMethods inherited from class X509Certificate
getExtendedKeyUsage, getIssuerAlternativeNames, getSubjectAlternativeNames, verifyMethods inherited from class Certificate
equals, getType, hashCode, writeReplace
-
Field Details
-
c
-
pkcs12Attributes
-
pkcs12Ordering
-
-
Constructor Details
-
X509CertificateObject
-
-
Method Details
-
checkValidity
- Specified by:
checkValidityin classX509Certificate- Throws:
CertificateExpiredExceptionCertificateNotYetValidException
-
checkValidity
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException - Specified by:
checkValidityin classX509Certificate- Throws:
CertificateExpiredExceptionCertificateNotYetValidException
-
getVersion
public int getVersion()- Specified by:
getVersionin classX509Certificate
-
getSerialNumber
- Specified by:
getSerialNumberin classX509Certificate
-
getIssuerDN
- Specified by:
getIssuerDNin classX509Certificate
-
getIssuerX500Principal
- Overrides:
getIssuerX500Principalin classX509Certificate
-
getSubjectDN
- Specified by:
getSubjectDNin classX509Certificate
-
getSubjectX500Principal
- Overrides:
getSubjectX500Principalin classX509Certificate
-
getNotBefore
- Specified by:
getNotBeforein classX509Certificate
-
getNotAfter
- Specified by:
getNotAfterin classX509Certificate
-
getTBSCertificate
- Specified by:
getTBSCertificatein classX509Certificate- Throws:
CertificateEncodingException
-
getSignature
public byte[] getSignature()- Specified by:
getSignaturein classX509Certificate
-
getSigAlgName
return a more "meaningful" representation for the signature algorithm used in the certficate.- Specified by:
getSigAlgNamein classX509Certificate
-
getSigAlgOID
return the object identifier for the signature.- Specified by:
getSigAlgOIDin classX509Certificate
-
getSigAlgParams
public byte[] getSigAlgParams()return the signature parameters, or null if there aren't any.- Specified by:
getSigAlgParamsin classX509Certificate
-
getIssuerUniqueID
public boolean[] getIssuerUniqueID()- Specified by:
getIssuerUniqueIDin classX509Certificate
-
getSubjectUniqueID
public boolean[] getSubjectUniqueID()- Specified by:
getSubjectUniqueIDin classX509Certificate
-
getKeyUsage
public boolean[] getKeyUsage()- Specified by:
getKeyUsagein classX509Certificate
-
getBasicConstraints
public int getBasicConstraints()- Specified by:
getBasicConstraintsin classX509Certificate
-
getCriticalExtensionOIDs
- Specified by:
getCriticalExtensionOIDsin interfaceX509Extension
-
getExtensionBytes
-
getExtensionValue
- Specified by:
getExtensionValuein interfaceX509Extension
-
getNonCriticalExtensionOIDs
- Specified by:
getNonCriticalExtensionOIDsin interfaceX509Extension
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()- Specified by:
hasUnsupportedCriticalExtensionin interfaceX509Extension
-
getPublicKey
- Specified by:
getPublicKeyin classCertificate
-
getEncoded
- Specified by:
getEncodedin classCertificate- Throws:
CertificateEncodingException
-
setBagAttribute
- Specified by:
setBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttribute
- Specified by:
getBagAttributein interfacePKCS12BagAttributeCarrier
-
getBagAttributeKeys
- Specified by:
getBagAttributeKeysin interfacePKCS12BagAttributeCarrier
-
toString
- Specified by:
toStringin classCertificate
-
verify
public final void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException - Specified by:
verifyin classCertificate- Throws:
CertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureException
-
verify
public final void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException - Specified by:
verifyin classCertificate- Throws:
CertificateExceptionNoSuchAlgorithmExceptionInvalidKeyExceptionNoSuchProviderExceptionSignatureException
-