public class UTF8PairsRegInfo extends RegistrationInfo
decoded, encoded
Constructor and Description |
---|
UTF8PairsRegInfo() |
UTF8PairsRegInfo(ASN1String value) |
UTF8PairsRegInfo(java.lang.String name,
java.lang.String value) |
Modifier and Type | Method and Description |
---|---|
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,
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.
|
input, inputInstance, length, output, setValue
getType, getValue, readExternal, writeExternal
public UTF8PairsRegInfo()
public UTF8PairsRegInfo(java.lang.String name, java.lang.String value)
public UTF8PairsRegInfo(ASN1String value)
public java.lang.String addPair(java.lang.String name, java.lang.String value)
UTF8PairsRegInfo
.null
if none was defined.public java.lang.String addPair(java.lang.String name, GeneralName value)
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:
"X"
for X500 directory name form
"O"
for Other name form
"E"
for E-mail address (rfc822name) name form
"D"
for DNS name form
"U"
for URI name form
"I"
for IP address
public java.lang.String addPair(java.util.Date notBefore, java.util.Date notAfter)
UTF8PairsRegInfo
.
Dates are formatted "YYYYMMDDHHMMSS". Either date argument may be
null
. The validity period value is formatted
validity?notBefore-notAfter".
notBefore
- The UTC date before which the certificate is invalid.notAfter
- The UTC date after which the certificate is invalid.public java.lang.String getValue(java.lang.String name)
null
if none has been defined.public java.util.Enumeration names()
protected void encodeValue()
RegistrationInfo
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(ASN1Object)
method to set the encoded structure.
encodeValue
in class RegistrationInfo
protected void decodeValue()
RegistrationInfo
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.
decodeValue
in class RegistrationInfo