public class URIName extends java.lang.Object implements GeneralNameInterface
GeneralName
,
GeneralNames
,
GeneralNameInterface
,
Serialized FormNAME_ANY, NAME_DIRECTORY, NAME_DNS, NAME_EDI, NAME_IP, NAME_OID, NAME_RFC822, NAME_URI, NAME_X400
Constructor and Description |
---|
URIName(DerValue derValue)
Create the URIName object from the passed encoded Der value.
|
URIName(java.lang.String name)
Create the URIName object with the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
encode(DerOutputStream out)
Encode the URI name into the DerOutputStream.
|
int |
getType()
Return the type of the GeneralName.
|
java.lang.String |
toString()
Convert the name into user readable string.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
validSingle, validSubtree
public URIName(DerValue derValue) throws java.io.IOException
derValue
- the encoded DER URIName.java.io.IOException
- on error.public URIName(java.lang.String name)
name
- the URIName.public int getType()
getType
in interface GeneralNameInterface
public void encode(DerOutputStream out) throws java.io.IOException
encode
in interface GeneralNameInterface
out
- the DER stream to encode the URIName to.java.io.IOException
- on encoding errors.public java.lang.String toString()
toString
in class java.lang.Object