Class URIName
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.URIName
-
- All Implemented Interfaces:
java.io.Serializable,GeneralNameInterface
public class URIName extends java.lang.Object implements GeneralNameInterface
This class implements the URIName as required by the GeneralNames ASN.1 object.- See Also:
GeneralName,GeneralNames,GeneralNameInterface, Serialized Form
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(DerOutputStream out)Encode the URI name into the DerOutputStream.intgetType()Return the type of the GeneralName.java.lang.StringtoString()Convert the name into user readable string.-
Methods 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 Detail
-
URIName
public URIName(DerValue derValue) throws java.io.IOException
Create the URIName object from the passed encoded Der value.- Parameters:
derValue- the encoded DER URIName.- Throws:
java.io.IOException- on error.
-
URIName
public URIName(java.lang.String name)
Create the URIName object with the specified name.- Parameters:
name- the URIName.
-
-
Method Detail
-
getType
public int getType()
Return the type of the GeneralName.- Specified by:
getTypein interfaceGeneralNameInterface
-
encode
public void encode(DerOutputStream out) throws java.io.IOException
Encode the URI name into the DerOutputStream.- Specified by:
encodein interfaceGeneralNameInterface- Parameters:
out- the DER stream to encode the URIName to.- Throws:
java.io.IOException- on encoding errors.
-
toString
public java.lang.String toString()
Convert the name into user readable string.- Overrides:
toStringin classjava.lang.Object
-
-