Ja.NET Standard Edition 5.0

Documentation API Specification

Contents

OtherName Class Reference

List of all members.


Detailed Description

The class encapsulates the ASN.1 DER encoding/decoding work with OtherName structure which is a subpart of GeneralName (as specified in RFC 3280 - Internet X.509 Public Key Infrastructure.

Certificate and Certificate Revocation List (CRL) Profile. http://www.ietf.org/rfc/rfc3280.txt):

   OtherName ::= SEQUENCE {
        type-id    OBJECT IDENTIFIER,
        value      [0] EXPLICIT ANY DEFINED BY type-id 
   }
 

Public Member Functions

 OtherName (String typeID, byte[] value)
 TODO.
String getTypeID ()
 Returns the value of typeID field of the structure.
byte[] getValue ()
 Returns the value of value field of the structure.
byte[] getEncoded ()
 Returns ASN.1 encoded form of this X.509 OtherName value.

Static Public Attributes

static final ASN1Sequence ASN1
 ASN.1 DER X.509 OtherName encoder/decoder class.

Private Member Functions

 OtherName (String typeID, byte[] value, byte[] encoding)

Private Attributes

String typeID
byte[] value
byte[] encoding

Constructor & Destructor Documentation

OtherName ( String  typeID,
byte[]  value 
)

TODO.

Parameters:
typeID,: String
value,: byte[]

OtherName ( String  typeID,
byte[]  value,
byte[]  encoding 
) [private]


Member Function Documentation

String getTypeID (  ) 

Returns the value of typeID field of the structure.

Returns:
typeID

byte [] getValue (  ) 

Returns the value of value field of the structure.

Returns:
value

byte [] getEncoded (  ) 

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

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


Member Data Documentation

String typeID [private]

byte [] value [private]

byte [] encoding [private]

final ASN1Sequence ASN1 [static]

Initial value:

 new ASN1Sequence(new ASN1Type[] {
            ASN1Oid.getInstance(), 
            new ASN1Explicit(0, ASN1Any.getInstance()) }) {

        protected Object getDecodedObject(BerInputStream in) {
            Object[] values = (Object[]) in.content;
            return new OtherName(ObjectIdentifier.toString((int[]) values[0]),
                    (byte[]) values[1], in.getEncoded());
        }

        protected void getValues(Object object, Object[] values) {

            OtherName on = (OtherName) object;

            values[0] = ObjectIdentifier.toIntArray(on.typeID);
            values[1] = on.value;
        }
    }
ASN.1 DER X.509 OtherName encoder/decoder class.