spki
Class SubjectName

java.lang.Object
  |
  +--spki.BaseObj
        |
        +--spki.Subject
              |
              +--spki.SubjectName

public class SubjectName
extends Subject

SPKI SubjectName class.

Formal definitions:

 <subject-name>:: "(" "subject" <subj-name-obj> ")" ;
 

Version:
$Id: SubjectName.java,v 1.13 2002/06/24 18:03:20 tep Exp $
Author:
Tep Narula <tep@win.trlabs.ca>
See Also:
Subject, SubjNameObj

Field Summary
private static String __ME
          This class's full name.
 
Fields inherited from class spki.Subject
__ME, dirty, MIN_THRESHOLD, reduceonly, SEXP_NAME, subj_obj, subj_obj_sexp, subj_objs, thresh, thresh_scheme, THRESHOLD_SEXP_NAME
 
Fields inherited from class spki.BaseObj
__ME, cache_sexp, cached_sexp, DEFAULT_HASH_ALG, locked, SEXP_NAME
 
Constructor Summary
protected SubjectName()
          Don't use me!
  SubjectName(SExpression sexp)
          Create an immutable SubjectName object from an S-Expression.
  SubjectName(SubjNameObj subject)
          Create an immutable SubjectName object from a given subj-name-obj.
 
Method Summary
static SubjNameObj getSubjNameObj(SExpression sexp)
          Get an instance of a SubjNameObj from given S-Expression.
 
Methods inherited from class spki.Subject
getSubjACL, getSubjObj, getSubjObjs, getSubjObjsLength, getThreshold, getThresholdSchemeId, rSubjObjs2SExpression, setSubjObj, setThreshold, toSExpression
 
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

SubjectName

protected SubjectName()
Don't use me!
See Also:
SubjectName(SExpression), SubjectName(SubjNameObj)

SubjectName

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

SubjectName

public SubjectName(SubjNameObj subject)
            throws SPKIException
Create an immutable SubjectName object from a given subj-name-obj.
Parameters:
subject - the subj-name-obj.
See Also:
SubjNameObj
Method Detail

getSubjNameObj

public static final SubjNameObj getSubjNameObj(SExpression sexp)
                                        throws ParseException,
                                               SPKIException
Get an instance of a SubjNameObj from given S-Expression.
Parameters:
sexp - the SExpression containing a SubjNameObj.
Returns:
An object instance implementing SubjNameObj.
Throws:
ParseException - if the argument doesn't contain a SubjNameObj.
SPKIException - if something went wrong.