Class OIDName
java.lang.Object
org.mozilla.jss.netscape.security.x509.OIDName
- All Implemented Interfaces:
Serializable,GeneralNameInterface
This class implements the OIDName as required by the GeneralNames
ASN.1 object.
- Version:
- 1.3
- See Also:
-
Field Summary
FieldsFields inherited from interface org.mozilla.jss.netscape.security.x509.GeneralNameInterface
NAME_ANY, NAME_DIRECTORY, NAME_DNS, NAME_EDI, NAME_IP, NAME_OID, NAME_RFC822, NAME_URI, NAME_X400 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencode(DerOutputStream out) Encode the OID name into the DerOutputStream.intgetType()Return the type of the GeneralName.toString()Convert the name into user readable string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.mozilla.jss.netscape.security.x509.GeneralNameInterface
validSingle, validSubtree
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
oid
-
-
Constructor Details
-
OIDName
Create the OIDName object from the passed encoded Der value.- Parameters:
derValue- the encoded DER OIDName.- Throws:
IOException- on error.
-
OIDName
Create the OIDName object with the specified name.- Parameters:
oid- the OIDName.
-
OIDName
-
-
Method Details
-
getType
public int getType()Return the type of the GeneralName.- Specified by:
getTypein interfaceGeneralNameInterface
-
encode
Encode the OID name into the DerOutputStream.- Specified by:
encodein interfaceGeneralNameInterface- Parameters:
out- the DER stream to encode the OIDName to.- Throws:
IOException- on encoding errors.
-
toString
Convert the name into user readable string.
-