public final class LazyX509Certificate
extends java.security.cert.X509Certificate
构造器和说明 |
---|
LazyX509Certificate(byte[] bytes)
Creates a new instance which will lazy parse the given bytes.
|
限定符和类型 | 方法和说明 |
---|---|
void |
checkValidity() |
void |
checkValidity(java.util.Date date) |
int |
getBasicConstraints() |
java.util.Set<java.lang.String> |
getCriticalExtensionOIDs() |
byte[] |
getEncoded() |
java.util.List<java.lang.String> |
getExtendedKeyUsage() |
byte[] |
getExtensionValue(java.lang.String oid) |
java.util.Collection<java.util.List<?>> |
getIssuerAlternativeNames() |
java.security.Principal |
getIssuerDN() |
boolean[] |
getIssuerUniqueID() |
javax.security.auth.x500.X500Principal |
getIssuerX500Principal() |
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() |
javax.security.auth.x500.X500Principal |
getSubjectX500Principal() |
byte[] |
getTBSCertificate() |
int |
getVersion() |
boolean |
hasUnsupportedCriticalExtension() |
java.lang.String |
toString() |
void |
verify(java.security.PublicKey key) |
void |
verify(java.security.PublicKey key,
java.security.Provider sigProvider) |
void |
verify(java.security.PublicKey key,
java.lang.String sigProvider) |
public LazyX509Certificate(byte[] bytes)
public void checkValidity() throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException
checkValidity
在类中 java.security.cert.X509Certificate
java.security.cert.CertificateExpiredException
java.security.cert.CertificateNotYetValidException
public void checkValidity(java.util.Date date) throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException
checkValidity
在类中 java.security.cert.X509Certificate
java.security.cert.CertificateExpiredException
java.security.cert.CertificateNotYetValidException
public javax.security.auth.x500.X500Principal getIssuerX500Principal()
getIssuerX500Principal
在类中 java.security.cert.X509Certificate
public javax.security.auth.x500.X500Principal getSubjectX500Principal()
getSubjectX500Principal
在类中 java.security.cert.X509Certificate
public java.util.List<java.lang.String> getExtendedKeyUsage() throws java.security.cert.CertificateParsingException
getExtendedKeyUsage
在类中 java.security.cert.X509Certificate
java.security.cert.CertificateParsingException
public java.util.Collection<java.util.List<?>> getSubjectAlternativeNames() throws java.security.cert.CertificateParsingException
getSubjectAlternativeNames
在类中 java.security.cert.X509Certificate
java.security.cert.CertificateParsingException
public java.util.Collection<java.util.List<?>> getIssuerAlternativeNames() throws java.security.cert.CertificateParsingException
getIssuerAlternativeNames
在类中 java.security.cert.X509Certificate
java.security.cert.CertificateParsingException
public void verify(java.security.PublicKey key, java.security.Provider sigProvider) throws java.security.cert.CertificateException, java.security.NoSuchAlgorithmException, java.security.InvalidKeyException, java.security.SignatureException
verify
在类中 java.security.cert.X509Certificate
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
java.security.SignatureException
public int getVersion()
getVersion
在类中 java.security.cert.X509Certificate
public java.math.BigInteger getSerialNumber()
getSerialNumber
在类中 java.security.cert.X509Certificate
public java.security.Principal getIssuerDN()
getIssuerDN
在类中 java.security.cert.X509Certificate
public java.security.Principal getSubjectDN()
getSubjectDN
在类中 java.security.cert.X509Certificate
public java.util.Date getNotBefore()
getNotBefore
在类中 java.security.cert.X509Certificate
public java.util.Date getNotAfter()
getNotAfter
在类中 java.security.cert.X509Certificate
public byte[] getTBSCertificate() throws java.security.cert.CertificateEncodingException
getTBSCertificate
在类中 java.security.cert.X509Certificate
java.security.cert.CertificateEncodingException
public byte[] getSignature()
getSignature
在类中 java.security.cert.X509Certificate
public java.lang.String getSigAlgName()
getSigAlgName
在类中 java.security.cert.X509Certificate
public java.lang.String getSigAlgOID()
getSigAlgOID
在类中 java.security.cert.X509Certificate
public byte[] getSigAlgParams()
getSigAlgParams
在类中 java.security.cert.X509Certificate
public boolean[] getIssuerUniqueID()
getIssuerUniqueID
在类中 java.security.cert.X509Certificate
public boolean[] getSubjectUniqueID()
getSubjectUniqueID
在类中 java.security.cert.X509Certificate
public boolean[] getKeyUsage()
getKeyUsage
在类中 java.security.cert.X509Certificate
public int getBasicConstraints()
getBasicConstraints
在类中 java.security.cert.X509Certificate
public byte[] getEncoded()
getEncoded
在类中 java.security.cert.Certificate
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
在类中 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
在类中 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
在类中 java.security.cert.Certificate
public java.security.PublicKey getPublicKey()
getPublicKey
在类中 java.security.cert.Certificate
public boolean hasUnsupportedCriticalExtension()
public java.util.Set<java.lang.String> getCriticalExtensionOIDs()
public java.util.Set<java.lang.String> getNonCriticalExtensionOIDs()
public byte[] getExtensionValue(java.lang.String oid)