COM.claymoresystems.cert

Class X509Name

public class X509Name extends Object implements DistinguishedName

An implementation of Distinguished Names

A DN is a SEQUENCE of SETs of "attribute value assertions" (AVAs)

Each AVA consists of a type and a value.

Constructor Summary
X509Name(byte[] nameDER)
Create a name given the DER
X509Name(Vector dn)
Method Summary
VectorgetName()
Get the name in more or less unformatted form.
byte[]getNameDER()
Get the DER form of the name
StringgetNameString()
Get the name in a string form

Constructor Detail

X509Name

public X509Name(byte[] nameDER)
Create a name given the DER

Parameters: nameDER the encoded form of the name

X509Name

public X509Name(Vector dn)

Method Detail

getName

public Vector getName()
Get the name in more or less unformatted form.

The outer SEQUENCE is represented by a Vector, each element of which (a SET) is also a Vector. Each element of the inner Vector (the AVA) is a String[2] with the first element being the attribute and the second being the value

Returns: the name in a Vector form

getNameDER

public byte[] getNameDER()
Get the DER form of the name

Returns: the encoded form

getNameString

public String getNameString()
Get the name in a string form

Returns: a string formatted version of the name

Copyright (c) 1999-2001 Claymore Systems, Inc., All Rights Reserved.