Skip navigation links

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

E10666-03


oracle.security.crypto.cmp.attribute
Class PKIPubInfoRegControl

java.lang.Object
  extended by oracle.security.crypto.cert.AttributeTypeAndValue
      extended by oracle.security.crypto.cmp.attribute.RegistrationControl
          extended by oracle.security.crypto.cmp.attribute.PKIPubInfoRegControl

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

public class PKIPubInfoRegControl
extends RegistrationControl

CRMF PKI publication information registration control.

See Also:
Serialized Form

Nested Class Summary
static class PKIPubInfoRegControl.Action
          PKI publication actions.
static class PKIPubInfoRegControl.Method
          PKI publication methods, if Action is PLEASE_PUBLISH.

 

Field Summary

 

Fields inherited from class oracle.security.crypto.cmp.attribute.RegistrationControl
decoded, encoded

 

Constructor Summary
PKIPubInfoRegControl()
          Creates a new, empty PKIPubInfoRegControl instance.
PKIPubInfoRegControl(java.io.InputStream is)
           
PKIPubInfoRegControl(PKIPubInfoRegControl.Action action)
          Creates a new PKIPubInfoRegControl instance with the specified PKIPubInfoRegControl.Action.
PKIPubInfoRegControl(PKIPubInfoRegControl.Action action, PKIPubInfoRegControl.Method pubMethod, oracle.security.crypto.cert.GeneralName pubLocation)
          Creates a new PKIPubInfoRegControl instance with the specified PKIPubInfoRegControl.Action and single publication method/location.

 

Method Summary
 void addPubInfo(PKIPubInfoRegControl.Method pubMethod, oracle.security.crypto.cert.GeneralName pubLocation)
          Defines a new publication location for the specified Method.
protected  void decodeValue()
          Decodes the superclass AttributeTypeAndValue's ASN1Object value to populate this control's fields.
protected  void encodeValue()
          Encodes this control's fields as an ASN1Object for the superclass AttributeTypeAndValue's value.
 PKIPubInfoRegControl.Action getAction()
           
 java.util.Vector getPubLocations(PKIPubInfoRegControl.Method pubMethod)
          Returns a vector of all locations for the specified Method if it has been defined, otherwise returns null.
 boolean hasPubMethod(PKIPubInfoRegControl.Method pubMethod)
          Returns true if this PKIPubInfoRegControl has the specified PKIPubInfoRegControl.Method defined.
 java.util.Enumeration pubMethods()
           

 

Methods inherited from class oracle.security.crypto.cmp.attribute.RegistrationControl
input, inputInstance, length, output, setValue

 

Methods inherited from class oracle.security.crypto.cert.AttributeTypeAndValue
getType, getValue, readExternal, writeExternal

 

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

 

Constructor Detail

PKIPubInfoRegControl

public PKIPubInfoRegControl()
Creates a new, empty PKIPubInfoRegControl instance. Note, the created object is not valid, and is intended primarily for use in conjunction with the RegistrationControl.input(java.io.InputStream) method.

PKIPubInfoRegControl

public PKIPubInfoRegControl(PKIPubInfoRegControl.Action action)
Creates a new PKIPubInfoRegControl instance with the specified PKIPubInfoRegControl.Action.

PKIPubInfoRegControl

public PKIPubInfoRegControl(PKIPubInfoRegControl.Action action,
                            PKIPubInfoRegControl.Method pubMethod,
                            oracle.security.crypto.cert.GeneralName pubLocation)
Creates a new PKIPubInfoRegControl instance with the specified PKIPubInfoRegControl.Action and single publication method/location.
Parameters:
action - PKIPubInfoRegControl.Action.DONT_PUBLISH or PKIPubInfoRegControl.Action.PLEASE_PUBLISH
pubMethod - PKIPubInfoRegControl.Method.DONT_CARE, PKIPubInfoRegControl.Method.X500, PKIPubInfoRegControl.Method.WEB, or PKIPubInfoRegControl.Method.LDAP.
pubLocation - The GeneralName location for the given method (may be null).

PKIPubInfoRegControl

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

Method Detail

addPubInfo

public void addPubInfo(PKIPubInfoRegControl.Method pubMethod,
                       oracle.security.crypto.cert.GeneralName pubLocation)
Defines a new publication location for the specified Method.
Parameters:
pubMethod - The publication method.
pubLocation - The publication location for the given method (may be null).

getAction

public PKIPubInfoRegControl.Action getAction()

hasPubMethod

public boolean hasPubMethod(PKIPubInfoRegControl.Method pubMethod)
Returns true if this PKIPubInfoRegControl has the specified PKIPubInfoRegControl.Method defined.

pubMethods

public java.util.Enumeration pubMethods()

getPubLocations

public java.util.Vector getPubLocations(PKIPubInfoRegControl.Method pubMethod)
Returns a vector of all locations for the specified Method if it has been defined, otherwise returns null.
Returns:
A vector of GeneralNames.

encodeValue

protected void encodeValue()
Description copied from class: RegistrationControl
Encodes this control's fields as an ASN1Object for the superclass AttributeTypeAndValue's value.

Subclasses must override this method to properly test and set the RegistrationControl.encoded field, and invoke the superclass RegistrationControl.setValue(oracle.security.crypto.asn1.ASN1Object) method to set the encoded structure.

Overrides:
encodeValue in class RegistrationControl

decodeValue

protected void decodeValue()
Description copied from class: RegistrationControl
Decodes the superclass AttributeTypeAndValue's ASN1Object value to populate this control's fields.

Subclasses must override this method to invoke the superclass AttributeTypeAndValue.getValue() method to get the structure to decode, and properly test and set the RegistrationControl.decoded field.

Overrides:
decodeValue in class RegistrationControl

Skip navigation links

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

E10666-03


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