Class ExtensionsRequested
java.lang.Object
org.mozilla.jss.netscape.security.x509.ExtensionsRequested
- All Implemented Interfaces:
CertAttrSet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
construct - expects this in the inputstream (from the router): 211 30 31: SEQUENCE { 213 06 10: OBJECT IDENTIFIER '2 16 840 1 113733 1 9 8' 225 31 17: SET { 227 04 15: OCTET STRING, encapsulates { 229 30 13: SEQUENCE { 231 30 11: SEQUENCE { 233 06 3: OBJECT IDENTIFIER keyUsage (2 5 29 15) 238 04 4: OCTET STRING : 03 02 05 A0 : } : } : } or this (from IRE client): 262 30 51: SEQUENCE { 264 06 9: OBJECT IDENTIFIER extensionReq (1 2 840 113549 1 9 14) 275 31 38: SET { 277 30 36: SEQUENCE { 279 30 34: SEQUENCE { 281 06 3: OBJECT IDENTIFIER subjectAltName (2 5 29 17) 286 04 27: OCTET STRING : 30 19 87 04 D0 0C 3E 6F 81 03 61 61 61 82 0C 61 : 61 61 2E 6D 63 6F 6D 2E 63 6F 6D : } : } : } : }void
decode
(InputStream in) Decodes the attribute in the input stream.void
Deletes an attribute value from this CertAttrSet.void
encode
(OutputStream out) Encodes the attribute to the output stream in a format that can be parsed by thedecode
method.Gets an attribute value for this CertAttrSet.Returns an enumeration of the names of the attributes existing within this attribute.getName()
Returns the name (identifier) of this CertAttrSet.void
Sets an attribute value within this CertAttrSet.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.mozilla.jss.netscape.security.x509.CertAttrSet
toString
-
Field Details
-
NAME
- See Also:
-
KUE_DIGITAL_SIGNATURE
- See Also:
-
KUE_KEY_ENCIPHERMENT
- See Also:
-
kueDigitalSignature
-
kueKeyEncipherment
-
exts
-
-
Constructor Details
-
ExtensionsRequested
- Throws:
IOException
-
-
Method Details
-
encode
Description copied from interface:CertAttrSet
Encodes the attribute to the output stream in a format that can be parsed by thedecode
method.- Specified by:
encode
in interfaceCertAttrSet
- Parameters:
out
- the OutputStream to encode the attribute to.- Throws:
CertificateException
- on encoding or validity errors.IOException
- on other errors.
-
decode
Description copied from interface:CertAttrSet
Decodes the attribute in the input stream.- Specified by:
decode
in interfaceCertAttrSet
- Parameters:
in
- the InputStream to read the encoded attribute from.- Throws:
CertificateException
- on decoding or validity errors.IOException
- on other errors.
-
set
Description copied from interface:CertAttrSet
Sets an attribute value within this CertAttrSet.- Specified by:
set
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute (e.g. "x509.info.key")obj
- the attribute object.- Throws:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
get
Description copied from interface:CertAttrSet
Gets an attribute value for this CertAttrSet.- Specified by:
get
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to return.- Returns:
- attribute value
- Throws:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
delete
Description copied from interface:CertAttrSet
Deletes an attribute value from this CertAttrSet.- Specified by:
delete
in interfaceCertAttrSet
- Parameters:
name
- the name of the attribute to delete.- Throws:
CertificateException
- on attribute handling errors.IOException
- on other errors.
-
getAttributeNames
Description copied from interface:CertAttrSet
Returns an enumeration of the names of the attributes existing within this attribute.- Specified by:
getAttributeNames
in interfaceCertAttrSet
- Returns:
- an enumeration of the attribute names.
-
getName
Description copied from interface:CertAttrSet
Returns the name (identifier) of this CertAttrSet.- Specified by:
getName
in interfaceCertAttrSet
- Returns:
- the name of this CertAttrSet.
-
construct
construct - expects this in the inputstream (from the router): 211 30 31: SEQUENCE { 213 06 10: OBJECT IDENTIFIER '2 16 840 1 113733 1 9 8' 225 31 17: SET { 227 04 15: OCTET STRING, encapsulates { 229 30 13: SEQUENCE { 231 30 11: SEQUENCE { 233 06 3: OBJECT IDENTIFIER keyUsage (2 5 29 15) 238 04 4: OCTET STRING : 03 02 05 A0 : } : } : } or this (from IRE client): 262 30 51: SEQUENCE { 264 06 9: OBJECT IDENTIFIER extensionReq (1 2 840 113549 1 9 14) 275 31 38: SET { 277 30 36: SEQUENCE { 279 30 34: SEQUENCE { 281 06 3: OBJECT IDENTIFIER subjectAltName (2 5 29 17) 286 04 27: OCTET STRING : 30 19 87 04 D0 0C 3E 6F 81 03 61 61 61 82 0C 61 : 61 61 2E 6D 63 6F 6D 2E 63 6F 6D : } : } : } : }- Throws:
IOException
-
getExtensions
-