Skip navigation links

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

E10666-05


oracle.security.crypto.cmp.attribute
Class UTF8PairsRegInfo

java.lang.Object
  extended by oracle.security.crypto.cert.AttributeTypeAndValue
      extended by oracle.security.crypto.cmp.attribute.RegistrationInfo
          extended by oracle.security.crypto.cmp.attribute.UTF8PairsRegInfo

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

public class UTF8PairsRegInfo
extends RegistrationInfo

CRMF registration info containing UTF8 string pairs.

See Also:
Serialized Form

Field Summary

 

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

 

Constructor Summary
UTF8PairsRegInfo()
           
UTF8PairsRegInfo(oracle.security.crypto.asn1.ASN1String value)
           
UTF8PairsRegInfo(java.io.InputStream is)
           
UTF8PairsRegInfo(java.lang.String name, java.lang.String value)
           

 

Method Summary
 java.lang.String addPair(java.util.Date notBefore, java.util.Date notAfter)
          Adds a "validity" name/value pair to this UTF8PairsRegInfo.
 java.lang.String addPair(java.lang.String name, oracle.security.crypto.cert.GeneralName value)
          Adds the given name/value pair to this UTF8PairsRegInfo, where the value is a GeneralName.
 java.lang.String addPair(java.lang.String name, java.lang.String value)
          Adds the given name/value pair to this UTF8PairsRegInfo.
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.
 java.lang.String getValue(java.lang.String name)
          Returns the value for the given name, or null if none has been defined.
 java.util.Enumeration names()
          Returns an enumeration of the names for which values have been defined.

 

Methods inherited from class oracle.security.crypto.cmp.attribute.RegistrationInfo
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

UTF8PairsRegInfo

public UTF8PairsRegInfo()

UTF8PairsRegInfo

public UTF8PairsRegInfo(java.lang.String name,
                        java.lang.String value)

UTF8PairsRegInfo

public UTF8PairsRegInfo(oracle.security.crypto.asn1.ASN1String value)

UTF8PairsRegInfo

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

Method Detail

addPair

public java.lang.String addPair(java.lang.String name,
                                java.lang.String value)
Adds the given name/value pair to this UTF8PairsRegInfo.
Returns:
The previous value for the given name, or null if none was defined.

addPair

public java.lang.String addPair(java.lang.String name,
                                oracle.security.crypto.cert.GeneralName value)
Adds the given name/value pair to this UTF8PairsRegInfo, where the value is a GeneralName. This method is recommended for use with the names "issuerName" and "subjectName".

The underlying form of the GeneralName is examined and the appropriate ID character is prepended to the value string:


addPair

public java.lang.String addPair(java.util.Date notBefore,
                                java.util.Date notAfter)
Adds a "validity" name/value pair to this UTF8PairsRegInfo.

Dates are formatted "YYYYMMDDHHMMSS". Either date argument may be null. The validity period value is formatted validity?notBefore-notAfter".

Parameters:
notBefore - The UTC date before which the certificate is invalid.
notAfter - The UTC date after which the certificate is invalid.

getValue

public java.lang.String getValue(java.lang.String name)
Returns the value for the given name, or null if none has been defined.

names

public java.util.Enumeration names()
Returns an enumeration of the names for which values have been defined.

encodeValue

protected void encodeValue()
Description copied from class: RegistrationInfo
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 RegistrationInfo.encoded field, and invoke the superclass RegistrationInfo.setValue(oracle.security.crypto.asn1.ASN1Object) method to set the encoded structure.

Overrides:
encodeValue in class RegistrationInfo

decodeValue

protected void decodeValue()
Description copied from class: RegistrationInfo
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 RegistrationInfo.decoded field.

Overrides:
decodeValue in class RegistrationInfo

Skip navigation links

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

E10666-05


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