org.bouncycastle.asn1.x509
public class GeneralName extends ASN1Encodable implements ASN1Choice
GeneralName ::= CHOICE {
otherName [0] OtherName,
rfc822Name [1] IA5String,
dNSName [2] IA5String,
x400Address [3] ORAddress,
directoryName [4] Name,
ediPartyName [5] EDIPartyName,
uniformResourceIdentifier [6] IA5String,
iPAddress [7] OCTET STRING,
registeredID [8] OBJECT IDENTIFIER}
OtherName ::= SEQUENCE {
type-id OBJECT IDENTIFIER,
value [0] EXPLICIT ANY DEFINED BY type-id }
EDIPartyName ::= SEQUENCE {
nameAssigner [0] DirectoryString OPTIONAL,
partyName [1] DirectoryString }
Name ::= CHOICE { RDNSequence }
| Field Summary | |
|---|---|
| static int | directoryName |
| static int | dNSName |
| static int | ediPartyName |
| static int | iPAddress |
| static int | otherName |
| static int | registeredID |
| static int | rfc822Name |
| static int | uniformResourceIdentifier |
| static int | x400Address |
| Constructor Summary | |
|---|---|
| GeneralName(X509Name dirName) | |
| GeneralName(DERObject name, int tag) | |
| GeneralName(int tag, ASN1Encodable name)
When the subjectAltName extension contains an Internet mail address,
the address MUST be included as an rfc822Name. | |
| GeneralName(int tag, String name)
Create a GeneralName for the given tag from the passed in String.
| |
| Method Summary | |
|---|---|
| static GeneralName | getInstance(Object obj) |
| static GeneralName | getInstance(ASN1TaggedObject tagObj, boolean explicit) |
| DEREncodable | getName() |
| int | getTagNo() |
| DERObject | toASN1Object() |
| String | toString() |
Deprecated: this constructor seems the wrong way round! Use GeneralName(tag, name).
This constructor can handle:
Note: A directory name can be encoded in different ways into a byte representation. Be aware of this if the byte representation is used for comparing results.
Parameters: tag tag number name string representation of name
Throws: IllegalArgumentException if the string encoding is not correct or * not supported.