edu.nyu.cs.pdsg.drbac
Class RoleId

java.lang.Object
  extended byedu.nyu.cs.pdsg.drbac.RoleId
All Implemented Interfaces:
java.io.Serializable

public class RoleId
extends java.lang.Object
implements java.io.Serializable

The fundamental entity in the credentials package. This represents an entity's name and key

See Also:
Serialized Form

Field Summary
 java.lang.String name
           
 java.security.PublicKey publicKey
           
 
Constructor Summary
RoleId(java.lang.String _name, java.security.PublicKey _publicKey)
          Standard Initializer
 
Method Summary
 boolean equals(java.lang.Object o)
          Compare this entity to another object
 java.security.PublicKey getPublicKey()
           
 java.lang.String toLongString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final java.lang.String name

publicKey

public final java.security.PublicKey publicKey
Constructor Detail

RoleId

public RoleId(java.lang.String _name,
              java.security.PublicKey _publicKey)
Standard Initializer

Parameters:
_name - the name of the entity
_publicKey - the public key of the entity
Method Detail

getPublicKey

public java.security.PublicKey getPublicKey()
Returns:
the public key

equals

public boolean equals(java.lang.Object o)
Compare this entity to another object

Parameters:
o - the object to compare to
Returns:
true if the two objects are the same

toString

public java.lang.String toString()
Returns:
a human readable representation of this entity

toLongString

public java.lang.String toLongString()
Returns:
a long human readable representation of this entity


Copyright (c) 2002-2003 New York University RLAB