COM.claymoresystems.cert

Class X509Name

Implemented Interfaces:
DistinguishedName

public class X509Name
extends java.lang.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(Vector dn)
X509Name(byte[] nameDER)
Create a name given the DER

Method Summary

Vector
getName()
Get the name in more or less unformatted form.
byte[]
getNameDER()
Get the DER form of the name
String
getNameString()
Get the name in a string form

Constructor Details

X509Name

public X509Name(Vector dn)


X509Name

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

Parameters:
nameDER - the encoded form of the name

Method Details

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

Specified by:
getName in interface DistinguishedName

Returns:
the name in a Vector form


getNameDER

public byte[] getNameDER()
Get the DER form of the name
Specified by:
getNameDER in interface DistinguishedName

Returns:
the encoded form


getNameString

public String getNameString()
Get the name in a string form
Specified by:
getNameString in interface DistinguishedName

Returns:
a string formatted version of the name


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