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.IOException
public 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.IOException
public 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.IOException
public java.lang.String getType()
KeyInfoData
Interface XMLURI
contains the KeyInfo data type URIs defined in the XML Signature and XML Encryption namespaces, including:
XMLURI.obj_DHKeyValue
XMLURI.obj_DSAKeyValue
XMLURI.obj_EncryptedKey
XMLURI.obj_KeyName
XMLURI.obj_MgmtData
XMLURI.obj_PGPData
XMLURI.obj_rawX509Certificate
XMLURI.obj_RetrievalMethod
XMLURI.obj_RSAKeyValue
XMLURI.obj_SPKIData
XMLURI.obj_X509Data
getType
in interface KeyInfoData