com.mindbright.security.x509
public class X509Certificate extends java.security.cert.Certificate
Constructor and Description |
---|
X509Certificate(byte[] encoded) |
Modifier and Type | Method and Description |
---|---|
BasicConstraints |
getBasicConstraints() |
byte[] |
getEncoded() |
java.lang.String |
getExtensions() |
java.lang.String |
getIssuerDN() |
KeyUsage |
getKeyUsage() |
java.lang.String |
getPubAlgName() |
java.security.PublicKey |
getPublicKey() |
java.math.BigInteger |
getSerialNumber() |
java.lang.String |
getSubjectDN() |
SubjectKeyIdentifier |
getSubjectKeyIdentifier() |
int |
getVersion() |
java.lang.String |
toString() |
void |
verify(java.security.PublicKey key) |
void |
verify(java.security.PublicKey key,
java.lang.String sigProvider) |
public byte[] getEncoded() throws java.security.cert.CertificateEncodingException
getEncoded
in class java.security.cert.Certificate
java.security.cert.CertificateEncodingException
public void verify(java.security.PublicKey key) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.NoSuchProviderException, java.security.SignatureException
verify
in class java.security.cert.Certificate
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.NoSuchProviderException
java.security.SignatureException
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
verify
in class java.security.cert.Certificate
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.NoSuchProviderException
java.security.SignatureException
public java.lang.String toString()
toString
in class java.security.cert.Certificate
public java.lang.String getIssuerDN()
public java.lang.String getSubjectDN()
public java.math.BigInteger getSerialNumber()
public java.lang.String getPubAlgName()
public SubjectKeyIdentifier getSubjectKeyIdentifier()
public KeyUsage getKeyUsage()
public BasicConstraints getBasicConstraints()
public java.lang.String getExtensions()
public int getVersion()
public java.security.PublicKey getPublicKey()
getPublicKey
in class java.security.cert.Certificate