Package com.wolfssl.provider.jsse
Class WolfSSLX509
- java.lang.Object
-
- java.security.cert.Certificate
-
- java.security.cert.X509Certificate
-
- com.wolfssl.provider.jsse.WolfSSLX509
-
- All Implemented Interfaces:
java.io.Serializable
,java.security.cert.X509Extension
public class WolfSSLX509 extends java.security.cert.X509Certificate
wolfSSL implementation of X509Certificate- Author:
- wolfSSL
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description WolfSSLX509(byte[] der)
WolfSSLX509(long x509)
WolfSSLX509(java.lang.String derName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkValidity()
void
checkValidity(java.util.Date date)
void
finalize()
void
free()
int
getBasicConstraints()
java.util.Set<java.lang.String>
getCriticalExtensionOIDs()
byte[]
getEncoded()
byte[]
getExtensionValue(java.lang.String oid)
java.security.Principal
getIssuerDN()
boolean[]
getIssuerUniqueID()
boolean[]
getKeyUsage()
java.util.Set<java.lang.String>
getNonCriticalExtensionOIDs()
java.util.Date
getNotAfter()
java.util.Date
getNotBefore()
java.security.PublicKey
getPublicKey()
java.math.BigInteger
getSerialNumber()
java.lang.String
getSigAlgName()
java.lang.String
getSigAlgOID()
byte[]
getSigAlgParams()
byte[]
getSignature()
java.util.Collection<java.util.List<?>>
getSubjectAlternativeNames()
java.security.Principal
getSubjectDN()
boolean[]
getSubjectUniqueID()
byte[]
getTBSCertificate()
int
getVersion()
boolean
hasUnsupportedCriticalExtension()
java.lang.String
toString()
void
verify(java.security.PublicKey key)
void
verify(java.security.PublicKey key, java.lang.String sigProvider)
void
verify(java.security.PublicKey key, java.security.Provider p)
-
-
-
Constructor Detail
-
WolfSSLX509
public WolfSSLX509(byte[] der) throws WolfSSLException
- Throws:
WolfSSLException
-
WolfSSLX509
public WolfSSLX509(java.lang.String derName) throws WolfSSLException
- Throws:
WolfSSLException
-
WolfSSLX509
public WolfSSLX509(long x509) throws WolfSSLException
- Throws:
WolfSSLException
-
-
Method Detail
-
checkValidity
public void checkValidity() throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException
- Specified by:
checkValidity
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateExpiredException
java.security.cert.CertificateNotYetValidException
-
checkValidity
public void checkValidity(java.util.Date date) throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException
- Specified by:
checkValidity
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateExpiredException
java.security.cert.CertificateNotYetValidException
-
getVersion
public int getVersion()
- Specified by:
getVersion
in classjava.security.cert.X509Certificate
-
getSerialNumber
public java.math.BigInteger getSerialNumber()
- Specified by:
getSerialNumber
in classjava.security.cert.X509Certificate
-
getIssuerDN
public java.security.Principal getIssuerDN()
- Specified by:
getIssuerDN
in classjava.security.cert.X509Certificate
-
getSubjectDN
public java.security.Principal getSubjectDN()
- Specified by:
getSubjectDN
in classjava.security.cert.X509Certificate
-
getNotBefore
public java.util.Date getNotBefore()
- Specified by:
getNotBefore
in classjava.security.cert.X509Certificate
-
getNotAfter
public java.util.Date getNotAfter()
- Specified by:
getNotAfter
in classjava.security.cert.X509Certificate
-
getTBSCertificate
public byte[] getTBSCertificate() throws java.security.cert.CertificateEncodingException
- Specified by:
getTBSCertificate
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateEncodingException
-
getSignature
public byte[] getSignature()
- Specified by:
getSignature
in classjava.security.cert.X509Certificate
-
getSigAlgName
public java.lang.String getSigAlgName()
- Specified by:
getSigAlgName
in classjava.security.cert.X509Certificate
-
getSigAlgOID
public java.lang.String getSigAlgOID()
- Specified by:
getSigAlgOID
in classjava.security.cert.X509Certificate
-
getSigAlgParams
public byte[] getSigAlgParams()
- Specified by:
getSigAlgParams
in classjava.security.cert.X509Certificate
-
getIssuerUniqueID
public boolean[] getIssuerUniqueID()
- Specified by:
getIssuerUniqueID
in classjava.security.cert.X509Certificate
-
getSubjectUniqueID
public boolean[] getSubjectUniqueID()
- Specified by:
getSubjectUniqueID
in classjava.security.cert.X509Certificate
-
getKeyUsage
public boolean[] getKeyUsage()
- Specified by:
getKeyUsage
in classjava.security.cert.X509Certificate
-
getBasicConstraints
public int getBasicConstraints()
- Specified by:
getBasicConstraints
in classjava.security.cert.X509Certificate
-
getEncoded
public byte[] getEncoded() throws java.security.cert.CertificateEncodingException
- Specified by:
getEncoded
in classjava.security.cert.Certificate
- Throws:
java.security.cert.CertificateEncodingException
-
getSubjectAlternativeNames
public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException
- Overrides:
getSubjectAlternativeNames
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateParsingException
-
verify
public void verify(java.security.PublicKey key) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.SignatureException
- Specified by:
verify
in classjava.security.cert.Certificate
- Throws:
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.SignatureException
-
verify
public void verify(java.security.PublicKey key, java.lang.String sigProvider) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.SignatureException
- Specified by:
verify
in classjava.security.cert.Certificate
- Throws:
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.NoSuchProviderException
java.security.SignatureException
-
verify
public void verify(java.security.PublicKey key, java.security.Provider p) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.SignatureException
- Overrides:
verify
in classjava.security.cert.X509Certificate
- Throws:
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.SignatureException
-
toString
public java.lang.String toString()
- Specified by:
toString
in classjava.security.cert.Certificate
-
free
public void free()
-
getPublicKey
public java.security.PublicKey getPublicKey()
- Specified by:
getPublicKey
in classjava.security.cert.Certificate
-
hasUnsupportedCriticalExtension
public boolean hasUnsupportedCriticalExtension()
-
getCriticalExtensionOIDs
public java.util.Set<java.lang.String> getCriticalExtensionOIDs()
-
getNonCriticalExtensionOIDs
public java.util.Set<java.lang.String> getNonCriticalExtensionOIDs()
-
getExtensionValue
public byte[] getExtensionValue(java.lang.String oid)
-
finalize
public void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-