public abstract class ForwardingX509Certificate extends X509Certificate
Simple forwarding X509Cerficate class. Overrides all abstract and non-abtract methods.
Certificate.CertificateRep
Constructor and Description |
---|
ForwardingX509Certificate() |
verify
getType, writeReplace
protected abstract X509Certificate delegate()
public X500Principal getIssuerX500Principal()
getIssuerX500Principal
in class X509Certificate
public X500Principal getSubjectX500Principal()
getSubjectX500Principal
in class X509Certificate
public List<String> getExtendedKeyUsage() throws CertificateParsingException
getExtendedKeyUsage
in class X509Certificate
CertificateParsingException
public Collection<List<?>> getSubjectAlternativeNames() throws CertificateParsingException
getSubjectAlternativeNames
in class X509Certificate
CertificateParsingException
public Collection<List<?>> getIssuerAlternativeNames() throws CertificateParsingException
getIssuerAlternativeNames
in class X509Certificate
CertificateParsingException
public boolean equals(Object other)
equals
in class Certificate
public int hashCode()
hashCode
in class Certificate
public boolean hasUnsupportedCriticalExtension()
public byte[] getExtensionValue(String oid)
public void checkValidity() throws CertificateExpiredException, CertificateNotYetValidException
checkValidity
in class X509Certificate
CertificateExpiredException
CertificateNotYetValidException
public void checkValidity(Date date) throws CertificateExpiredException, CertificateNotYetValidException
checkValidity
in class X509Certificate
CertificateExpiredException
CertificateNotYetValidException
public int getVersion()
getVersion
in class X509Certificate
public BigInteger getSerialNumber()
getSerialNumber
in class X509Certificate
public Principal getIssuerDN()
getIssuerDN
in class X509Certificate
public Principal getSubjectDN()
getSubjectDN
in class X509Certificate
public Date getNotBefore()
getNotBefore
in class X509Certificate
public Date getNotAfter()
getNotAfter
in class X509Certificate
public byte[] getTBSCertificate() throws CertificateEncodingException
getTBSCertificate
in class X509Certificate
CertificateEncodingException
public byte[] getSignature()
getSignature
in class X509Certificate
public String getSigAlgName()
getSigAlgName
in class X509Certificate
public String getSigAlgOID()
getSigAlgOID
in class X509Certificate
public byte[] getSigAlgParams()
getSigAlgParams
in class X509Certificate
public boolean[] getIssuerUniqueID()
getIssuerUniqueID
in class X509Certificate
public boolean[] getSubjectUniqueID()
getSubjectUniqueID
in class X509Certificate
public boolean[] getKeyUsage()
getKeyUsage
in class X509Certificate
public int getBasicConstraints()
getBasicConstraints
in class X509Certificate
public byte[] getEncoded() throws CertificateEncodingException
getEncoded
in class Certificate
CertificateEncodingException
public void verify(PublicKey key) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify
in class Certificate
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
public void verify(PublicKey key, String sigProvider) throws CertificateException, NoSuchAlgorithmException, InvalidKeyException, NoSuchProviderException, SignatureException
verify
in class Certificate
CertificateException
NoSuchAlgorithmException
InvalidKeyException
NoSuchProviderException
SignatureException
public String toString()
toString
in class Certificate
public PublicKey getPublicKey()
getPublicKey
in class Certificate
Copyright © 2016–2024. All rights reserved.