The ASN.1 syntax for this is:
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
}
| Modifier and Type | Field and Description |
|---|---|
| private final GeneralNameInterface |
| Access | Constructor and Description |
|---|---|
| public | GeneralName(GeneralNameInterface
the selected CHOICE from the list. name)Default constructor for the class. |
| public | GeneralName(DerValue
the DER encoded GeneralName. encName)Create the object from its DER encoded value. |
| public | GeneralName(DerValue
the DER encoded GeneralName. encName, boolean true if general name is a name constraint nameConstraint)Create the object from its DER encoded value. |
| Modifier and Type | Method and Description |
|---|---|
| public void | encode(DerOutputStream
the DerOutputStream to encode the GeneralName to. out)Implements sun. Encode the name to the specified DerOutputStream. |
| public boolean | Returns: true if matchGeneralName to compare to this obj)Overrides java. Compare this GeneralName with another |
| public GeneralNameInterface | |
| public int | |
| public int | Returns: the hash code for this GeneralNameOverrides java. Returns the hash code for this GeneralName. |
| public String |
| name | back to summary |
|---|---|
| private final GeneralNameInterface name | |
| GeneralName | back to summary |
|---|---|
| public GeneralName(GeneralNameInterface name) Default constructor for the class.
| |
| GeneralName | back to summary |
|---|---|
| public GeneralName(DerValue encName) throws IOException Create the object from its DER encoded value.
| |
| GeneralName | back to summary |
|---|---|
| public GeneralName(DerValue encName, boolean nameConstraint) throws IOException Create the object from its DER encoded value.
| |
| encode | back to summary |
|---|---|
| public void encode(DerOutputStream out) Implements sun. Encode the name to the specified DerOutputStream.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compare this GeneralName with another | |
| getName | back to summary |
|---|---|
| public GeneralNameInterface getName() Return the GeneralNameInterface name. | |
| getType | back to summary |
|---|---|
| public int getType() Return the type of the general name. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns the hash code for this GeneralName.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Return the name as user readable string | |