COM.claymoresystems.cert
Class X509Name

java.lang.Object
  extended by COM.claymoresystems.cert.X509Name
All 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(byte[] nameDER)
          Create a name given the DER
X509Name(java.util.Vector dn)
           
 
Method Summary
 java.util.Vector getName()
          Get the name in more or less unformatted form.
 byte[] getNameDER()
          Get the DER form of the name
 java.lang.String getNameString()
          Get the name in a string form
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

X509Name

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

Parameters:
nameDER - the encoded form of the name

X509Name

public X509Name(java.util.Vector dn)
Method Detail

getNameDER

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

Specified by:
getNameDER in interface DistinguishedName
Returns:
the encoded form

getName

public java.util.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

getNameString

public java.lang.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.