com.ibm.security12.sun.security.x509
Interface GeneralNameInterface
- All Known Implementing Classes:
- DNSName, IPAddressName, OIDName, RFC822Name, URIName, X500Name, OtherName, EDIPartyName
- public abstract interface GeneralNameInterface
This interface specifies the abstract methods which have to be
implemented by all the members of the GeneralNames ASN.1 object.
- Version:
- 1.7
- Author:
- Amit Kapoor, Hemma Prafullchandra
Method Summary |
void |
encode(DerOutputStream out)
Encode the name to the specified DerOutputStream. |
int |
getType()
Return the type of the general name, as
defined above. |
NAME_ANY
public static final int NAME_ANY
- The list of names supported.
NAME_RFC822
public static final int NAME_RFC822
NAME_DNS
public static final int NAME_DNS
NAME_X400
public static final int NAME_X400
NAME_DIRECTORY
public static final int NAME_DIRECTORY
NAME_EDI
public static final int NAME_EDI
NAME_URI
public static final int NAME_URI
NAME_IP
public static final int NAME_IP
NAME_OID
public static final int NAME_OID
getType
public int getType()
- Return the type of the general name, as
defined above.
encode
public void encode(DerOutputStream out)
throws IOException
- Encode the name to the specified DerOutputStream.
- Parameters:
out
- the DerOutputStream to encode the GeneralName to.- Throws:
- IOException - thrown if the GeneralName could not be
encoded.