Class OtherName
java.lang.Object
org.mozilla.jss.netscape.security.x509.OtherName
- All Implemented Interfaces:
Serializable
,GeneralNameInterface
This class implements the OtherName as required by the GeneralNames
ASN.1 object.
OtherName ::= SEQUENCE {
type-id OBJECT IDENTIFIER,
value [0] EXPLICIT ANY DEFINED BY type-id
}
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionOtherName
(byte[] data) Create the IPAddressName object from the passed encoded Der value.OtherName
(ObjectIdentifier oid, byte[] data) OtherName
(ObjectIdentifier oid, byte tag, String value) Constructs a string-based other name.OtherName
(ObjectIdentifier oid, String value) -
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(InputStream in) void
encode
(DerOutputStream out) Encode the IPAddress name into the DerOutputStream.getOID()
int
getType()
Return the type of the GeneralName.byte[]
getValue()
toStr
(byte[] data) toString()
Return a printable string of IPaddressMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.mozilla.jss.netscape.security.x509.GeneralNameInterface
validSingle, validSubtree
-
Constructor Details
-
OtherName
Create the IPAddressName object from the passed encoded Der value.- Parameters:
derValue
- the encoded DER IPAddressName.- Throws:
IOException
- on error.
-
OtherName
- Throws:
IOException
-
OtherName
Constructs a string-based other name.- Throws:
IOException
-
OtherName
- Throws:
IOException
-
OtherName
public OtherName(byte[] data)
-
-
Method Details
-
getOID
-
getType
public int getType()Return the type of the GeneralName.- Specified by:
getType
in interfaceGeneralNameInterface
-
encode
Encode the IPAddress name into the DerOutputStream.- Specified by:
encode
in interfaceGeneralNameInterface
- Parameters:
out
- the DER stream to encode the IPAddressName to.- Throws:
IOException
- on encoding errors.
-
decode
- Throws:
IOException
-
getValue
public byte[] getValue() -
toString
Return a printable string of IPaddress -
toStr
-