Oracle Security Developer Tools XML Security Java API Reference
10g (10.1.4.0.1)

B28178-01


oracle.security.xmlsec.keys
Class RawX509Cert

java.lang.Object
  extended byoracle.security.xmlsec.keys.RawX509Cert

All Implemented Interfaces:
KeyInfoData

public class RawX509Cert
extends java.lang.Object
implements KeyInfoData

Wrapper for a binary X.509 certificate.

Note: Instances of this class do not represent XML elments within the XML-DSIG schema, and do not extend {link XMLElement}.


Constructor Summary
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.

 

Method Summary
 oracle.security.crypto.cert.X509 getCertificate()
          Returns a oracle.security.crypto.cert.X509 certificate instance.
 java.lang.String getType()
          Returns the type URI that identifies the specific KeyInfoData subclass.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

RawX509Cert

public RawX509Cert(java.io.InputStream is)
            throws java.io.IOException
Creates a new instance of RawX509Cert from the ASN.1 DER encoded certificate bytes read from the given input stream.
Parameters:
is - An input stream containing the bytes of an ASN.1 DER encoded X.509 certificate.

RawX509Cert

public RawX509Cert(byte[] certBytes)
            throws java.io.IOException
Creates a new instance of RawX509Cert from the given ASN.1 DER encoded certificate bytes.
Parameters:
certBytes - The bytes of an ASN.1 DER encoded X.509 certificate.

Method Detail

getCertificate

public oracle.security.crypto.cert.X509 getCertificate()
                                                throws java.io.IOException
Returns a oracle.security.crypto.cert.X509 certificate instance.
Returns:
A oracle.security.crypto.cert.X509 certificate instance.
Throws:
java.io.IOException

getType

public java.lang.String getType()
Description copied from interface: KeyInfoData
Returns the type URI that identifies the specific KeyInfoData subclass.

Interface XMLURI contains the KeyInfo data type URIs defined in the XML Signature and XML Encryption namespaces, including:

Specified by:
getType in interface KeyInfoData

Oracle Security Developer Tools XML Security Java API Reference
10g (10.1.4.0.1)

B28178-01


Copyright © 2005 ,2006 , Oracle. All rights reserved.