com.ibm.security12.sun.security.x509
Class URIName
java.lang.Object
|
+--com.ibm.security12.sun.security.x509.URIName
- public class URIName
- extends Object
- implements GeneralNameInterface
This class implements the URIName as required by the GeneralNames
ASN.1 object.
- Version:
- 1.5
- Author:
- Amit Kapoor, Hemma Prafullchandra
- See Also:
GeneralName
,
GeneralNames
,
GeneralNameInterface
Constructor Summary |
URIName(DerValue derValue)
Create the URIName object from the passed encoded Der value. |
URIName(String name)
Create the URIName object with the specified name. |
URIName
public URIName(DerValue derValue)
throws IOException
- Create the URIName object from the passed encoded Der value.
- Parameters:
derValue
- the encoded DER URIName.- Throws:
- IOException - on error.
URIName
public URIName(String name)
- Create the URIName object with the specified name.
- Parameters:
name
- the URIName.
getType
public int getType()
- Return the type of the GeneralName.
- Specified by:
- getType in interface GeneralNameInterface
encode
public void encode(DerOutputStream out)
throws IOException
- Encode the URI name into the DerOutputStream.
- Specified by:
- encode in interface GeneralNameInterface
- Parameters:
out
- the DER stream to encode the URIName to.- Throws:
- IOException - on encoding errors.
toString
public String toString()
- Convert the name into user readable string.
- Overrides:
- toString in class Object