|
Oracle Fusion Middleware JCE Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10697-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.security.cert.Certificate
java.security.cert.X509Certificate
oracle.security.crypto.jce.cert.X509Impl
public class X509Impl
This class encapsulates X.509 Version 3 certificates.
Both RSA and DSA certificates are supported. This class provides the methods for reading and writing X509 Version 1 fields of the certificate.
Any X509 v3 extension can be handled through X509Extension
. A subset of the standard extensions defined in RFC 2459 are conveniently implemented as subclasses of X509Extension
, in the oracle.security.crypto.cert.ext
package.
X509Attributes
, X509Extension
, X509ExtensionSet
, Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class java.security.cert.Certificate |
---|
java.security.cert.Certificate.CertificateRep |
Constructor Summary | |
---|---|
X509Impl() |
|
X509Impl(java.io.InputStream is) Construct from the specified input stream. |
Method Summary | |
---|---|
void |
checkValidity() Verify the date of the certificate. |
void |
checkValidity(java.util.Date date) Verify the date of the certificate. |
boolean |
equals(java.lang.Object o) Compare this certificate to the specified object. |
int |
getBasicConstraints() |
java.util.Set |
getCriticalExtensionOIDs() |
byte[] |
getEncoded() Returns the ASN.1 encoding. |
byte[] |
getExtensionValue(java.lang.String oid) |
java.security.Principal |
getIssuerDN() Returns the name of the issuer. |
boolean[] |
getIssuerUniqueID() |
boolean[] |
getKeyUsage() |
java.util.Set |
getNonCriticalExtensionOIDs() |
java.util.Date |
getNotAfter() Get the not after date. |
java.util.Date |
getNotBefore() Get the not before date. |
java.security.PublicKey |
getPublicKey() Gets the public key. |
java.math.BigInteger |
getSerialNumber() Get the serial number. |
java.lang.String |
getSigAlgName() |
java.lang.String |
getSigAlgOID() Get the string representation of the signature algorithm used to sign this certificate. |
byte[] |
getSigAlgParams() |
byte[] |
getSignature() Returns the signature bytes, signing the certificate first if needed. |
java.security.Principal |
getSubjectDN() Get the sbjectDN of the certificate. |
boolean[] |
getSubjectUniqueID() |
byte[] |
getTBSCertificate() |
int |
getVersion() |
int |
hashCode() |
boolean |
hasUnsupportedCriticalExtension() |
void |
input(java.io.InputStream is) |
int |
length() Returns length of DER encoding of this certificate. |
void |
output(java.io.OutputStream os) Output to the specified output stream. |
java.lang.String |
toString() Returns a verbose humanly readable representation of this certificate. |
void |
verify(java.security.PublicKey key) Verifies this certificate. |
void |
verify(java.security.PublicKey key, java.lang.String sigProvider) Verifies this certificate. |
Methods inherited from class java.security.cert.X509Certificate |
---|
getExtendedKeyUsage, getIssuerAlternativeNames, getIssuerX500Principal, getSubjectAlternativeNames, getSubjectX500Principal |
Methods inherited from class java.security.cert.Certificate |
---|
getType, writeReplace |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public X509Impl()
public X509Impl(java.io.InputStream is) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public void input(java.io.InputStream is) throws java.io.IOException
input
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public void output(java.io.OutputStream os) throws java.io.IOException
output
in interface oracle.security.crypto.util.Streamable
java.io.IOException
public int length()
Throws a StreamableOutputException
if an error occurs while generating the DER encoding.
length
in interface oracle.security.crypto.util.Streamable
public byte[] getEncoded()
Throws a StreamableOutputException
if an error occurs while generating the encoded bytes.
getEncoded
in class java.security.cert.Certificate
public byte[] getTBSCertificate()
getTBSCertificate
in class java.security.cert.X509Certificate
public byte[] getSignature()
getSignature
in class java.security.cert.X509Certificate
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 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 checkValidity() throws java.security.cert.CertificateExpiredException, java.security.cert.CertificateNotYetValidException
checkValidity
in class 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
in class java.security.cert.X509Certificate
java.security.cert.CertificateExpiredException
java.security.cert.CertificateNotYetValidException
public java.security.Principal getSubjectDN()
getSubjectDN
in class java.security.cert.X509Certificate
public boolean[] getSubjectUniqueID()
getSubjectUniqueID
in class java.security.cert.X509Certificate
public java.security.PublicKey getPublicKey()
getPublicKey
in class java.security.cert.Certificate
public java.util.Date getNotBefore()
getNotBefore
in class java.security.cert.X509Certificate
public java.util.Date getNotAfter()
getNotAfter
in class java.security.cert.X509Certificate
public java.security.Principal getIssuerDN()
getIssuerDN
in class java.security.cert.X509Certificate
public boolean[] getIssuerUniqueID()
getIssuerUniqueID
in class java.security.cert.X509Certificate
public java.math.BigInteger getSerialNumber()
getSerialNumber
in class java.security.cert.X509Certificate
public java.lang.String getSigAlgOID()
getSigAlgOID
in class java.security.cert.X509Certificate
public java.lang.String getSigAlgName()
getSigAlgName
in class java.security.cert.X509Certificate
public byte[] getSigAlgParams()
getSigAlgParams
in class java.security.cert.X509Certificate
public int getVersion()
getVersion
in class java.security.cert.X509Certificate
public java.util.Set getCriticalExtensionOIDs()
getCriticalExtensionOIDs
in interface java.security.cert.X509Extension
public java.util.Set getNonCriticalExtensionOIDs()
getNonCriticalExtensionOIDs
in interface java.security.cert.X509Extension
public byte[] getExtensionValue(java.lang.String oid)
getExtensionValue
in interface java.security.cert.X509Extension
public boolean hasUnsupportedCriticalExtension()
hasUnsupportedCriticalExtension
in interface java.security.cert.X509Extension
public int getBasicConstraints()
getBasicConstraints
in class java.security.cert.X509Certificate
public boolean[] getKeyUsage()
getKeyUsage
in class java.security.cert.X509Certificate
public boolean equals(java.lang.Object o)
null
and is an X509
object which has the same DER encoding as this object.equals
in class java.security.cert.Certificate
public int hashCode()
hashCode
in class java.security.cert.Certificate
public java.lang.String toString()
toString
in class java.security.cert.Certificate
|
Oracle Fusion Middleware JCE Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10697-03 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |