spki
Class RelativeName

java.lang.Object
  |
  +--spki.BaseObj
        |
        +--spki.Name
              |
              +--spki.RelativeName

public class RelativeName
extends Name
implements SubjCapabilityObj, SubjNameObj, SubjAttributeObj

SPKI RelativeName class.

Formal definitions:

 <relative-name>:: "(" "name" <byte-string> ")" ;
 

Version:
$Id: RelativeName.java,v 1.9 2002/05/06 07:06:05 tep Exp $
Author:
Tep Narula <tep@win.trlabs.ca>

Field Summary
private static String __ME
          This class's full name.
 
Fields inherited from class spki.Name
__ME, dirty, isFQName, isLocalName, isRelativeName, names, principal, SEXP_NAME
 
Fields inherited from class spki.BaseObj
__ME, cache_sexp, cached_sexp, DEFAULT_HASH_ALG, locked, SEXP_NAME
 
Constructor Summary
protected RelativeName()
          Don't use me!
  RelativeName(byte[] name)
          Create an immutable RelativeName from a name byte-array.
  RelativeName(SExpression sexp)
          Create an immutable RelativeName object from an S-Expression.
  RelativeName(String name)
          Create an immutable RelativeName from a name String.
 
Method Summary
 Sexp getName()
          Get the name.
 
Methods inherited from class spki.Name
addName, addName, addName, getInstance, getName, getNameDepth, getPrincipal, isFQName, isLocalName, isRelativeName, setPrincipal, toSExpression, verify
 
Methods inherited from class spki.BaseObj
disableSExpressionCaching, enableSExpressionCaching, extractHashAlgId, getCachedSExpression, isLocked, isSListOfType, lock, providerToSPKI, setCachedSExpression, spkiToProvider, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

__ME

private static final String __ME
This class's full name.
Constructor Detail

RelativeName

protected RelativeName()
Don't use me!
See Also:
RelativeName(String), RelativeName(byte[])

RelativeName

public RelativeName(SExpression sexp)
             throws SPKIException,
                    ParseException
Create an immutable RelativeName object from an S-Expression.
See Also:
Name.Name(SExpression)

RelativeName

public RelativeName(String name)
             throws SPKIException
Create an immutable RelativeName from a name String.
Parameters:
name - the name String.
Throws:
SPKIException - if something went wrong.

RelativeName

public RelativeName(byte[] name)
             throws SPKIException
Create an immutable RelativeName from a name byte-array.
Parameters:
name - the name byte-array.
Throws:
SPKIException - if something went wrong.
Method Detail

getName

public Sexp getName()
             throws SPKIException
Get the name.
Returns:
A copy of the name Sexp object.