FileDocCategorySizeDatePackage
OtherName.javaAPI DocAndroid 1.5 API3860Wed May 06 22:41:06 BST 2009org.apache.harmony.security.x509

OtherName

public class OtherName extends Object
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
}

Fields Summary
private String
typeID
private byte[]
value
private byte[]
encoding
public static final org.apache.harmony.security.asn1.ASN1Sequence
ASN1
ASN.1 DER X.509 OtherName encoder/decoder class.
Constructors Summary
public OtherName(String typeID, byte[] value)
TODO

param
typeID: String
param
value: byte[]

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

        this.typeID = typeID;
        this.value = value;
        this.encoding = encoding;
    
Methods Summary
public byte[]getEncoded()
Returns ASN.1 encoded form of this X.509 OtherName value.

return
a byte array containing ASN.1 encode form.

        if (encoding == null) {
            encoding = ASN1.encode(this);
        }
        return encoding;
    
public java.lang.StringgetTypeID()
Returns the value of typeID field of the structure.

return
typeID

        return typeID;
    
public byte[]getValue()
Returns the value of value field of the structure.

return
value

        return value;