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
-
-
Field Summary
Fields Modifier and Type Field Description static booleanISSUERstatic booleanSUBJECT-
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
All Methods Instance Methods Concrete Methods 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 Detail
-
ISSUER
public static final boolean ISSUER
- See Also:
- Constant Field Values
-
SUBJECT
public static final boolean SUBJECT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AlternativeName
public AlternativeName(boolean which, byte[] encoding) throws IOExceptionCreates 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 Detail
-
getEncoded
public byte[] getEncoded()
Returns ASN.1 encoded form of this X.509 AlternativeName value.- Overrides:
getEncodedin classExtensionValue
-
dumpValue
public void dumpValue(StringBuilder sb, String prefix)
- Overrides:
dumpValuein classExtensionValue
-
-