com.caucho.server.security
Class PasswordUser

java.lang.Object
  extended by com.caucho.server.security.PasswordUser

public class PasswordUser
extends java.lang.Object

PasswordUser is used by PasswordAuthenticator implementations.


Constructor Summary
PasswordUser(java.security.Principal principal, char[] password, boolean isDisabled, boolean isAnonymous, java.lang.String[] roles)
           
PasswordUser(java.security.Principal principal, char[] password, java.lang.String[] roles)
           
PasswordUser(java.lang.String user, char[] password)
           
PasswordUser(java.lang.String user, char[] password, java.lang.String[] roles)
           
 
Method Summary
 void clearPassword()
          Clears the password
 PasswordUser copy()
          Creates a copy
 char[] getPassword()
          Returns the password
 java.security.Principal getPrincipal()
          Returns the logged-in user principal
 java.lang.String[] getRoles()
          Returns the user's roles
 boolean isAnonymous()
          Returns true if the user is anonymous, i.e.
 boolean isDisabled()
          Returns true if the user is disabled
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PasswordUser

public PasswordUser(java.security.Principal principal,
                    char[] password,
                    boolean isDisabled,
                    boolean isAnonymous,
                    java.lang.String[] roles)

PasswordUser

public PasswordUser(java.security.Principal principal,
                    char[] password,
                    java.lang.String[] roles)

PasswordUser

public PasswordUser(java.lang.String user,
                    char[] password,
                    java.lang.String[] roles)

PasswordUser

public PasswordUser(java.lang.String user,
                    char[] password)
Method Detail

getPrincipal

public java.security.Principal getPrincipal()
Returns the logged-in user principal


isDisabled

public boolean isDisabled()
Returns true if the user is disabled


isAnonymous

public boolean isAnonymous()
Returns true if the user is anonymous, i.e. no password


getPassword

public char[] getPassword()
Returns the password


clearPassword

public void clearPassword()
Clears the password


getRoles

public java.lang.String[] getRoles()
Returns the user's roles


copy

public PasswordUser copy()
Creates a copy


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object