public final class PemX509Certificate
extends java.security.cert.X509Certificate
X509Certificate which allows
the user to pass PEM/PKCS#8 encoded data straight into OpenSslContext without
having to parse and re-encode bytes in Java land.
All methods other than what's implemented in PemEncoded's throw
UnsupportedOperationExceptions.PemEncoded,
OpenSslContext,
valueOf(byte[]),
valueOf(ByteBuf),
序列化表格| 限定符和类型 | 方法和说明 |
|---|---|
void |
checkValidity() |
void |
checkValidity(java.util.Date date) |
ByteBuf |
content()
Return the data which is held by this
ByteBufHolder. |
PemX509Certificate |
copy()
Create a deep copy of this
ByteBufHolder. |
PemX509Certificate |
duplicate()
Duplicate the
ByteBufHolder. |
boolean |
equals(java.lang.Object o) |
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.security.Principal |
getSubjectDN() |
boolean[] |
getSubjectUniqueID() |
byte[] |
getTBSCertificate() |
int |
getVersion() |
int |
hashCode() |
boolean |
hasUnsupportedCriticalExtension() |
boolean |
isSensitive()
Returns
true if the PEM encoded value is considered
sensitive information such as a private key. |
int |
refCnt()
Returns the reference count of this object.
|
boolean |
release()
Decreases the reference count by
1 and deallocates this object if the reference count reaches at
0. |
boolean |
release(int decrement)
Decreases the reference count by the specified
decrement and deallocates this object if the reference
count reaches at 0. |
PemX509Certificate |
retain()
Increases the reference count by
1. |
PemX509Certificate |
retain(int increment)
Increases the reference count by the specified
increment. |
java.lang.String |
toString() |
static PemX509Certificate |
valueOf(byte[] key)
Creates a
PemX509Certificate from raw byte[]. |
static PemX509Certificate |
valueOf(ByteBuf key)
Creates a
PemX509Certificate from raw ByteBuf. |
void |
verify(java.security.PublicKey key) |
void |
verify(java.security.PublicKey key,
java.lang.String sigProvider) |
public static PemX509Certificate valueOf(byte[] key)
PemX509Certificate from raw byte[].
ATTENTION: It's assumed that the given argument is a PEM/PKCS#8 encoded value.
No input validation is performed to validate it.public static PemX509Certificate valueOf(ByteBuf key)
PemX509Certificate from raw ByteBuf.
ATTENTION: It's assumed that the given argument is a PEM/PKCS#8 encoded value.
No input validation is performed to validate it.public boolean isSensitive()
true if the PEM encoded value is considered
sensitive information such as a private key.public int refCnt()
ReferenceCounted0, it means this object has been deallocated.public ByteBuf content()
ByteBufHolderByteBufHolder.public PemX509Certificate copy()
ByteBufHolderByteBufHolder.public PemX509Certificate duplicate()
ByteBufHolderByteBufHolder. Be aware that this will not automatically call ByteBufHolder.retain().public PemX509Certificate retain()
ReferenceCounted1.public PemX509Certificate retain(int increment)
ReferenceCountedincrement.public boolean release()
ReferenceCounted1 and deallocates this object if the reference count reaches at
0.true if and only if the reference count became 0 and this object has been deallocatedpublic boolean release(int decrement)
ReferenceCounteddecrement and deallocates this object if the reference
count reaches at 0.true if and only if the reference count became 0 and this object has been deallocatedpublic byte[] getEncoded()
getEncoded 在类中 java.security.cert.Certificatepublic boolean hasUnsupportedCriticalExtension()
hasUnsupportedCriticalExtension 在接口中 java.security.cert.X509Extensionpublic java.util.Set<java.lang.String> getCriticalExtensionOIDs()
getCriticalExtensionOIDs 在接口中 java.security.cert.X509Extensionpublic java.util.Set<java.lang.String> getNonCriticalExtensionOIDs()
getNonCriticalExtensionOIDs 在接口中 java.security.cert.X509Extensionpublic byte[] getExtensionValue(java.lang.String oid)
getExtensionValue 在接口中 java.security.cert.X509Extensionpublic void checkValidity()
checkValidity 在类中 java.security.cert.X509Certificatepublic void checkValidity(java.util.Date date)
checkValidity 在类中 java.security.cert.X509Certificatepublic int getVersion()
getVersion 在类中 java.security.cert.X509Certificatepublic java.math.BigInteger getSerialNumber()
getSerialNumber 在类中 java.security.cert.X509Certificatepublic java.security.Principal getIssuerDN()
getIssuerDN 在类中 java.security.cert.X509Certificatepublic java.security.Principal getSubjectDN()
getSubjectDN 在类中 java.security.cert.X509Certificatepublic java.util.Date getNotBefore()
getNotBefore 在类中 java.security.cert.X509Certificatepublic java.util.Date getNotAfter()
getNotAfter 在类中 java.security.cert.X509Certificatepublic byte[] getTBSCertificate()
getTBSCertificate 在类中 java.security.cert.X509Certificatepublic byte[] getSignature()
getSignature 在类中 java.security.cert.X509Certificatepublic java.lang.String getSigAlgName()
getSigAlgName 在类中 java.security.cert.X509Certificatepublic java.lang.String getSigAlgOID()
getSigAlgOID 在类中 java.security.cert.X509Certificatepublic byte[] getSigAlgParams()
getSigAlgParams 在类中 java.security.cert.X509Certificatepublic boolean[] getIssuerUniqueID()
getIssuerUniqueID 在类中 java.security.cert.X509Certificatepublic boolean[] getSubjectUniqueID()
getSubjectUniqueID 在类中 java.security.cert.X509Certificatepublic boolean[] getKeyUsage()
getKeyUsage 在类中 java.security.cert.X509Certificatepublic int getBasicConstraints()
getBasicConstraints 在类中 java.security.cert.X509Certificatepublic void verify(java.security.PublicKey key)
verify 在类中 java.security.cert.Certificatepublic void verify(java.security.PublicKey key,
java.lang.String sigProvider)
verify 在类中 java.security.cert.Certificatepublic java.security.PublicKey getPublicKey()
getPublicKey 在类中 java.security.cert.Certificatepublic boolean equals(java.lang.Object o)
equals 在类中 java.security.cert.Certificatepublic int hashCode()
hashCode 在类中 java.security.cert.Certificatepublic java.lang.String toString()
toString 在类中 java.security.cert.Certificate