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

EDIPartyName

public class EDIPartyName extends Object
The class encapsulates the ASN.1 DER encoding/decoding work with the following 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):
EDIPartyName ::= SEQUENCE {
nameAssigner [0] DirectoryString OPTIONAL,
partyName [1] DirectoryString
}

DirectoryString ::= CHOICE {
teletexString TeletexString (SIZE (1..MAX)),
printableString PrintableString (SIZE (1..MAX)),
universalString UniversalString (SIZE (1..MAX)),
utf8String UTF8String (SIZE (1..MAX)),
bmpString BMPString (SIZE (1..MAX))
}

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

param
nameAssigner: String
param
partyName: String

        this.nameAssigner = nameAssigner;
        this.partyName = partyName;
    
private EDIPartyName(String nameAssigner, String partyName, byte[] encoding)

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

return
a byte array containing ASN.1 encode form.

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

return
nameAssigner

        return nameAssigner;
    
public java.lang.StringgetPartyName()
Returns the value of partyName field of the structure.

return
partyName

        return partyName;