Class GeneralName
-
- All Implemented Interfaces:
-
io.anyline.nfc.bouncycastle.asn1.ASN1Choice
,io.anyline.nfc.bouncycastle.asn1.ASN1Encodable
,io.anyline.nfc.bouncycastle.util.Encodable
public class GeneralName extends ASN1Object implements ASN1Choice
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
Fields Modifier and Type Field Description public final static int
otherName
public final static int
rfc822Name
public final static int
dNSName
public final static int
x400Address
public final static int
directoryName
public final static int
ediPartyName
public final static int
uniformResourceIdentifier
public final static int
iPAddress
public final static int
registeredID
-
Constructor Summary
Constructors Constructor Description GeneralName(X509Name dirName)
GeneralName(X500Name dirName)
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
Modifier and Type Method Description static GeneralName
getInstance(Object obj)
static GeneralName
getInstance(ASN1TaggedObject tagObj, boolean explicit)
int
getTagNo()
ASN1Encodable
getName()
String
toString()
ASN1Primitive
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding. -
-
Constructor Detail
-
GeneralName
GeneralName(X509Name dirName)
-
GeneralName
GeneralName(X500Name dirName)
-
GeneralName
GeneralName(int tag, ASN1Encodable name)
When the subjectAltName extension contains an Internet mail address, the address MUST be included as an rfc822Name.
-
GeneralName
GeneralName(int tag, String name)
Create a GeneralName for the given tag from the passed in String.- Parameters:
tag
- tag numbername
- string representation of name
-
-
Method Detail
-
getInstance
static GeneralName getInstance(Object obj)
-
getInstance
static GeneralName getInstance(ASN1TaggedObject tagObj, boolean explicit)
-
getTagNo
int getTagNo()
-
getName
ASN1Encodable getName()
-
toASN1Primitive
ASN1Primitive toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
- Returns:
a primitive representation of this object.
-
-
-
-