Package com.wolfssl.provider.jsse
Class WolfSSLX509X
- java.lang.Object
-
- javax.security.cert.Certificate
-
- javax.security.cert.X509Certificate
-
- com.wolfssl.provider.jsse.WolfSSLX509X
-
public class WolfSSLX509X extends javax.security.cert.X509Certificate
javax version of certificates. Depreciated, WolfSSLX509 should be used instead- Author:
- wolfSSL
-
-
Constructor Summary
Constructors Constructor Description WolfSSLX509X(byte[] der)
WolfSSLX509X(long x509)
WolfSSLX509X(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()
byte[]
getEncoded()
java.security.Principal
getIssuerDN()
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()
java.security.Principal
getSubjectDN()
int
getVersion()
java.lang.String
toString()
void
verify(java.security.PublicKey key)
void
verify(java.security.PublicKey key, java.lang.String provider)
-
-
-
Constructor Detail
-
WolfSSLX509X
public WolfSSLX509X(byte[] der) throws WolfSSLException
- Throws:
WolfSSLException
-
WolfSSLX509X
public WolfSSLX509X(java.lang.String derName) throws WolfSSLException
- Throws:
WolfSSLException
-
WolfSSLX509X
public WolfSSLX509X(long x509) throws WolfSSLException
- Throws:
WolfSSLException
-
-
Method Detail
-
checkValidity
public void checkValidity() throws javax.security.cert.CertificateExpiredException, javax.security.cert.CertificateNotYetValidException
- Specified by:
checkValidity
in classjavax.security.cert.X509Certificate
- Throws:
javax.security.cert.CertificateExpiredException
javax.security.cert.CertificateNotYetValidException
-
checkValidity
public void checkValidity(java.util.Date date) throws javax.security.cert.CertificateExpiredException, javax.security.cert.CertificateNotYetValidException
- Specified by:
checkValidity
in classjavax.security.cert.X509Certificate
- Throws:
javax.security.cert.CertificateExpiredException
javax.security.cert.CertificateNotYetValidException
-
getVersion
public int getVersion()
- Specified by:
getVersion
in classjavax.security.cert.X509Certificate
-
getSerialNumber
public java.math.BigInteger getSerialNumber()
- Specified by:
getSerialNumber
in classjavax.security.cert.X509Certificate
-
getIssuerDN
public java.security.Principal getIssuerDN()
- Specified by:
getIssuerDN
in classjavax.security.cert.X509Certificate
-
getSubjectDN
public java.security.Principal getSubjectDN()
- Specified by:
getSubjectDN
in classjavax.security.cert.X509Certificate
-
getNotBefore
public java.util.Date getNotBefore()
- Specified by:
getNotBefore
in classjavax.security.cert.X509Certificate
-
getNotAfter
public java.util.Date getNotAfter()
- Specified by:
getNotAfter
in classjavax.security.cert.X509Certificate
-
getSigAlgName
public java.lang.String getSigAlgName()
- Specified by:
getSigAlgName
in classjavax.security.cert.X509Certificate
-
getSigAlgOID
public java.lang.String getSigAlgOID()
- Specified by:
getSigAlgOID
in classjavax.security.cert.X509Certificate
-
getSigAlgParams
public byte[] getSigAlgParams()
- Specified by:
getSigAlgParams
in classjavax.security.cert.X509Certificate
-
getEncoded
public byte[] getEncoded() throws javax.security.cert.CertificateEncodingException
- Specified by:
getEncoded
in classjavax.security.cert.Certificate
- Throws:
javax.security.cert.CertificateEncodingException
-
verify
public void verify(java.security.PublicKey key) throws javax.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.SignatureException
- Specified by:
verify
in classjavax.security.cert.Certificate
- Throws:
javax.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.NoSuchProviderException
java.security.SignatureException
-
verify
public void verify(java.security.PublicKey key, java.lang.String provider) throws javax.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.SignatureException
- Specified by:
verify
in classjavax.security.cert.Certificate
- Throws:
javax.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.NoSuchProviderException
java.security.SignatureException
-
toString
public java.lang.String toString()
- Specified by:
toString
in classjavax.security.cert.Certificate
-
getPublicKey
public java.security.PublicKey getPublicKey()
- Specified by:
getPublicKey
in classjavax.security.cert.Certificate
-
finalize
public void finalize() throws java.lang.Throwable
- Overrides:
finalize
in classjava.lang.Object
- Throws:
java.lang.Throwable
-
-