Skip navigation links

Oracle Fusion Middleware PKI SDK OCSP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10673-03


oracle.security.crypto.ocsp
Class NonceExtension

java.lang.Object
  extended by oracle.security.crypto.cert.X509Extension
      extended by oracle.security.crypto.ocsp.NonceExtension

All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, oracle.security.crypto.asn1.ASN1Object, oracle.security.crypto.util.Streamable

public class NonceExtension
extends oracle.security.crypto.cert.X509Extension

Represents the Nonce extension from RFC 2650 for OCSPRequest and OCSPResponse objects.

See Also:
Serialized Form

Field Summary

 

Fields inherited from class oracle.security.crypto.cert.X509Extension
id_netscape_ce, id_netscape_ce_type, id_set_ce, id_set_ce_type, isDecoded

 

Constructor Summary
NonceExtension()
          Create a new extension with the appropriate OID type.
NonceExtension(byte[] nonce)
          Creates a new Nonce extension with the given nonce.
NonceExtension(byte[] nonce, boolean critical)
          Creates a new Nonce extension with the given nonce.
NonceExtension(java.io.InputStream is)
           

 

Method Summary
 byte[] getNonce()
          Gets the nonce ofthis extension.
 java.lang.String toString()
           

 

Methods inherited from class oracle.security.crypto.cert.X509Extension
getCritical, getType, getValue, input, inputInstance, isRecognized, length, output, readExternal, setCritical, setValue, writeExternal

 

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

 

Constructor Detail

NonceExtension

public NonceExtension()
Create a new extension with the appropriate OID type.

Note: An object created using this constructor may not be in a valid state. This constructor is intended primarily for use in conjunction with the X509Extension.input(java.io.InputStream) method.


NonceExtension

public NonceExtension(byte[] nonce)
Creates a new Nonce extension with the given nonce. By default this extension will be non-critical.
Parameters:
nonce - The nonce bytes.

NonceExtension

public NonceExtension(byte[] nonce,
                      boolean critical)
Creates a new Nonce extension with the given nonce.
Parameters:
nonce - The nonce of this extension.
critical - True if this extension is critical, false otherwise.

NonceExtension

public NonceExtension(java.io.InputStream is)
               throws java.io.IOException
Throws:
java.io.IOException

Method Detail

getNonce

public byte[] getNonce()
Gets the nonce ofthis extension.
Returns:
A byte[] representing the nonce.

toString

public java.lang.String toString()
Overrides:
toString in class oracle.security.crypto.cert.X509Extension

Skip navigation links

Oracle Fusion Middleware PKI SDK OCSP Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10673-03


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