ch.odi.jaaspam
Class PamPrincipal

java.lang.Object
  extended by ch.odi.jaaspam.PamPrincipal
All Implemented Interfaces:
java.security.Principal

public class PamPrincipal
extends java.lang.Object
implements java.security.Principal

An implementation of Principal suitable for PAM. A PAM principal is identified by a username.

Author:
Ortwin Gl?ck

Constructor Summary
PamPrincipal(java.lang.String name)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
toString
 

Constructor Detail

PamPrincipal

public PamPrincipal(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.security.Principal
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.security.Principal
Overrides:
hashCode in class java.lang.Object


Copyright © 2004-2008 Ortwin Glück. All Rights Reserved.