Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

AlternativeName Class Reference

Inherits org::apache::harmony::security::x509::ExtensionValue.

List of all members.


Detailed Description

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


Public Member Functions

 AlternativeName (boolean which, GeneralNames alternativeNames)
 Creates the extension object for given alternative names.
 AlternativeName (boolean which, byte[] encoding) throws IOException
 Creates the extension object on the base of its encoded form.
List getAlternativeNames ()
 Returns the list of alternative names.
byte[] getEncoded ()
 Returns ASN.1 encoded form of this X.509 AlternativeName value.
void dumpValue (StringBuffer buffer, String prefix)
 Places the string representation of extension value into the StringBuffer object.

Static Public Attributes

static final boolean ISSUER = false
static final boolean SUBJECT = true

Private Attributes

boolean which
GeneralNames alternativeNames

Constructor & Destructor Documentation

AlternativeName ( boolean  which,
GeneralNames  alternativeNames 
)

Creates the extension object for given alternative names.

Parameters:
which specifies which alternative names are given (Subject's or Issuer's)

AlternativeName ( boolean  which,
byte[]  encoding 
) throws IOException

Creates the extension object on the base of its encoded form.

Parameters:
which specifies which alternative names are given (Subject's or Issuer's)


Member Function Documentation

List getAlternativeNames (  ) 

Returns the list of alternative names.

The list is in the collection of pairs:
[Integer (tag of GeneralName), Object (name value)]

byte [] getEncoded (  ) 

Returns ASN.1 encoded form of this X.509 AlternativeName value.

Returns:
a byte array containing ASN.1 encode form.

Reimplemented from ExtensionValue.

void dumpValue ( StringBuffer  buffer,
String  prefix 
)

Places the string representation of extension value into the StringBuffer object.

Reimplemented from ExtensionValue.


Member Data Documentation

final boolean ISSUER = false [static]

final boolean SUBJECT = true [static]

boolean which [private]