Package org.apache.harmony.security.x509
Class AlternativeName
java.lang.Object
org.apache.harmony.security.x509.ExtensionValue
org.apache.harmony.security.x509.AlternativeName
public final class AlternativeName extends ExtensionValue
This class implements the values of Subject Alternative Name
(OID is 2.5.29.17) and Issuer Alternative Name extensions
(OID is 2.5.29.18).
For more information about these extensions see RFC 3280 at http://www.ietf.org/rfc/rfc3280.txt
For more information about these extensions see RFC 3280 at http://www.ietf.org/rfc/rfc3280.txt
-
Field Summary
Fields inherited from class org.apache.harmony.security.x509.ExtensionValue
encoding -
Constructor Summary
Constructors Constructor Description AlternativeName(boolean which, byte[] encoding)Creates the extension object on the base of its encoded form. -
Method Summary
Modifier and Type Method Description voiddumpValue(StringBuilder sb, String prefix)byte[]getEncoded()Returns ASN.1 encoded form of this X.509 AlternativeName value.Methods inherited from class org.apache.harmony.security.x509.ExtensionValue
dumpValue
-
Field Details
-
ISSUER
public static final boolean ISSUER- See Also:
- Constant Field Values
-
SUBJECT
public static final boolean SUBJECT- See Also:
- Constant Field Values
-
-
Constructor Details
-
AlternativeName
Creates the extension object on the base of its encoded form.- Parameters:
which- specifies which alternative names are given (Subject's or Issuer's)- Throws:
IOException
-
-
Method Details
-
getEncoded
public byte[] getEncoded()Returns ASN.1 encoded form of this X.509 AlternativeName value.- Overrides:
getEncodedin classExtensionValue
-
dumpValue
- Overrides:
dumpValuein classExtensionValue
-