|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.GeneralName
The GeneralName object. 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(int tag,
ASN1Encodable name)
When the subjectAltName extension contains an Internet mail address, the address MUST be included as an rfc822Name. |
|
GeneralName(int tag,
java.lang.String name)
Create a GeneralName for the given tag from the passed in String. |
|
GeneralName(X500Name dirName)
|
|
GeneralName(X509Name dirName)
Deprecated. use X500Name constructor. |
Method Summary | |
static GeneralName |
getInstance(ASN1TaggedObject tagObj,
boolean explicit)
|
static GeneralName |
getInstance(java.lang.Object obj)
|
ASN1Encodable |
getName()
|
int |
getTagNo()
|
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding. |
java.lang.String |
toString()
|
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int otherName
public static final int rfc822Name
public static final int dNSName
public static final int x400Address
public static final int directoryName
public static final int ediPartyName
public static final int uniformResourceIdentifier
public static final int iPAddress
public static final int registeredID
Constructor Detail |
public GeneralName(X509Name dirName)
dirName
- public GeneralName(X500Name dirName)
public GeneralName(int tag, ASN1Encodable name)
public GeneralName(int tag, java.lang.String name)
This constructor can handle: rfc822Name iPAddress directoryName dNSName uniformResourceIdentifier registeredID For x400Address, otherName and ediPartyName there is no common string format defined.
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.
tag
- tag numbername
- string representation of name
java.lang.IllegalArgumentException
- if the string encoding is not correct or * not supported.Method Detail |
public static GeneralName getInstance(java.lang.Object obj)
public static GeneralName getInstance(ASN1TaggedObject tagObj, boolean explicit)
public int getTagNo()
public ASN1Encodable getName()
public java.lang.String toString()
public ASN1Primitive toASN1Primitive()
ASN1Object
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |