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 intotherNamepublic final static intrfc822Namepublic final static intdNSNamepublic final static intx400Addresspublic final static intdirectoryNamepublic final static intediPartyNamepublic final static intuniformResourceIdentifierpublic final static intiPAddresspublic final static intregisteredID
-
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 GeneralNamegetInstance(Object obj)static GeneralNamegetInstance(ASN1TaggedObject tagObj, boolean explicit)intgetTagNo()ASN1EncodablegetName()StringtoString()ASN1PrimitivetoASN1Primitive()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.
-
-
-
-