|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--iaik.asn1.structures.GeneralName
This class implements the ASN1. type "GeneralName". A GeneralName may be of one of the following types:
ASN.1 definition:
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 }
DirectoryString ::= CHOICE {
teletexString TeletexString (SIZE (1..maxSize),
printableString PrintableString (SIZE (1..maxSize)),
universalString UniversalString (SIZE (1..maxSize)),
bmpString BMPString (SIZE(1..maxSIZE))
}
When creating a GeneralName object, specify the intended type and
the value to be set, e.g.:
GeneralName generalName = new GeneralName(GeneralName.uniformResourceIdentifier, "http://www.iaik.tu-graz.ac.at/");
Note that the GeneralName types otherName, x400Address and ediPartyName are not supported by this implementation!
IA5String,
OCTET_STRING,
ObjectID,
Name,
T61String,
PrintableString,
UNIString,
BMPString| Field Summary | |
static int |
directoryName
GeneralName type directoryName (4). |
static int |
dNSName
GeneralName type dNSrName (2). |
static int |
ediPartyName
GeneralName type ediPartyName (5). |
static int |
iPAddress
GeneralName type iPAddress (7). |
static int |
otherName
GeneralName type otherName (0). |
static int |
registeredID
GeneralName type registeredID (8). |
static int |
rfc822Name
GeneralName type rfc822Name (1). |
static int |
uniformResourceIdentifier
GeneralName type uniformResourceIdentifier (6). |
static int |
x400Address
GeneralName type x400Address (3). |
| Constructor Summary | |
GeneralName(ASN1Object generalName)
Creates a GeneralName form an ASN1Object. |
|
GeneralName(int type,
java.lang.Object generalName)
Creates a GeneralName for given type and value. |
|
| Method Summary | |
java.lang.Object |
getName()
Returns the value of this general name. |
int |
getType()
Returns the type of this general name which may lie between 0 and 8. |
ASN1Object |
toASN1Object()
Returns this GeneralName object as ASN1Object. |
java.lang.String |
toString()
Returns a string that represents the contents of this general name. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
| Field Detail |
public static int otherName
otherName (0).public static int rfc822Name
rfc822Name (1).public static int dNSName
dNSrName (2).public static int x400Address
x400Address (3).public static int directoryName
directoryName (4).public static int ediPartyName
ediPartyName (5).public static int uniformResourceIdentifier
uniformResourceIdentifier (6).public static int iPAddress
iPAddress (7).public static int registeredID
registeredID (8).| Constructor Detail |
public GeneralName(int type,
java.lang.Object generalName)
throws java.lang.IllegalArgumentException
type - the type of the general name; a valid type must be used (0 ... 8)generalName - the value for this type of general name
public GeneralName(ASN1Object generalName)
throws CodingException
toASN1Object
method.generalName - the general name as ASN1Object| Method Detail |
public ASN1Object toASN1Object()
throws CodingException
public java.lang.Object getName()
public int getType()
public java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||