public class RawX509Cert extends java.lang.Object implements KeyInfoData
Note: Instances of this class do not represent XML elments within the XML-DSIG schema, and do not extend {link XMLElement}.
| Constructor and Description |
|---|
RawX509Cert(byte[] certBytes)
Creates a new instance of
RawX509Cert from
the given ASN.1 DER encoded certificate bytes. |
RawX509Cert(java.io.InputStream is)
Creates a new instance of
RawX509Cert from
the ASN.1 DER encoded certificate bytes read from the
given input stream. |
| Modifier and Type | Method and Description |
|---|---|
java.security.cert.X509Certificate |
getCertificate()
Returns a
oracle.security.crypto.cert.X509Certificate certificate instance. |
java.lang.String |
getType()
Returns the type URI that identifies the specific KeyInfoData
subclass.
|
public RawX509Cert(java.io.InputStream is)
throws java.io.IOException
RawX509Cert from
the ASN.1 DER encoded certificate bytes read from the
given input stream.is - An input stream containing the bytes of an ASN.1 DER
encoded X.509 certificate.java.io.IOExceptionpublic RawX509Cert(byte[] certBytes)
throws java.io.IOException
RawX509Cert from
the given ASN.1 DER encoded certificate bytes.certBytes - The bytes of an ASN.1 DER encoded X.509 certificate.java.io.IOExceptionpublic java.security.cert.X509Certificate getCertificate()
throws java.io.IOException
oracle.security.crypto.cert.X509Certificate certificate instance.oracle.security.crypto.cert.X509Certificate certificate instance.java.io.IOExceptionpublic java.lang.String getType()
KeyInfoDataInterface XMLURI contains the KeyInfo data type URIs
defined in the XML Signature and XML Encryption namespaces, including:
XMLURI.obj_DHKeyValueXMLURI.obj_DSAKeyValueXMLURI.obj_EncryptedKeyXMLURI.obj_KeyNameXMLURI.obj_MgmtDataXMLURI.obj_PGPDataXMLURI.obj_rawX509CertificateXMLURI.obj_RetrievalMethodXMLURI.obj_RSAKeyValueXMLURI.obj_SPKIDataXMLURI.obj_X509DatagetType in interface KeyInfoData