winstone
Class AuthenticationPrincipal

java.lang.Object
  extended by winstone.AuthenticationPrincipal
All Implemented Interfaces:
java.io.Serializable, java.security.Principal

public class AuthenticationPrincipal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable

Implements the principal method - basically just a way of identifying an authenticated user.

Version:
$Id: AuthenticationPrincipal.java,v 1.2 2006/02/28 07:32:47 rickknowles Exp $
Author:
Rick Knowles
See Also:
Serialized Form

Constructor Summary
AuthenticationPrincipal(java.lang.String userName, java.lang.String password, java.util.List roles)
          Constructor
 
Method Summary
 java.lang.String getAuthType()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 boolean isUserIsInRole(java.lang.String role)
          Searches for the requested role in this user's roleset.
 void setAuthType(java.lang.String authType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

AuthenticationPrincipal

public AuthenticationPrincipal(java.lang.String userName,
                               java.lang.String password,
                               java.util.List roles)
Constructor

Method Detail

getName

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

getPassword

public java.lang.String getPassword()

getAuthType

public java.lang.String getAuthType()

setAuthType

public void setAuthType(java.lang.String authType)

isUserIsInRole

public boolean isUserIsInRole(java.lang.String role)
Searches for the requested role in this user's roleset.



Copyright © 2013. All Rights Reserved.