Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## spki.interfaces
Interface Principal

All Known Implementing Classes:
  Hash, PublicKey

public interface Principal
extends SPKIObject, SubjCapabilityObj, SubjNameObj, SubjRoleObj, SubjTransferObj, SubjAttributeObj, SubjACL, SeqEntry

spki Principal interface.

Formal definitions:

###

###

     <principal>:: <pub-key> | <hash-of-key> ;

    Version: $Id: Principal.java,v 1.4 2002/05/12 01:25:02 tep Exp $
    Author: Tep Narula <tep@win.trlabs.ca>

    Method Summary

     boolean
    equals(Principal that)

              Compare this object with another principal.

     Principal
    toHashPrincipal()

              Convert this principal into a hash representation.

    Method Detail

    equals

    public boolean equals(Principal that)

    Compare this object with another principal.

    Parameters:that - a principal to compare with.Returns:true if the two principals are equal,
     false otherwise.

    toHashPrincipal

    public Principal toHashPrincipal()
                              throws SPKIException

    Convert this principal into a hash representation.

    Returns:the hash representation of this principal.Throws:SPKIException - if something went wrong during conversion.

          Overview
          Package
        Class
          Tree
          Deprecated
          Index
          Help

     PREV CLASS
     NEXT CLASS

      FRAMES
     NO FRAMES

      SUMMARY:  INNER | FIELD | CONSTR | METHOD

    DETAIL:  FIELD | CONSTR | METHOD