Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acegisecurity.adapters
Class PrincipalAcegiUserToken  view PrincipalAcegiUserToken download PrincipalAcegiUserToken.java

java.lang.Object
  extended byorg.acegisecurity.providers.AbstractAuthenticationToken
      extended byorg.acegisecurity.adapters.AbstractAdapterAuthenticationToken
          extended byorg.acegisecurity.adapters.PrincipalAcegiUserToken
All Implemented Interfaces:
AuthByAdapter, org.acegisecurity.Authentication, java.security.Principal, java.io.Serializable

public class PrincipalAcegiUserToken
extends AbstractAdapterAuthenticationToken
implements java.security.Principal

A java.security.Principal compatible org.acegisecurity.Authentication object.

Version:
$Id: PrincipalAcegiUserToken.java,v 1.6 2005/11/25 00:26:30 benalex Exp $

Field Summary
private  java.lang.String password
           
private  java.lang.Object principal
           
private  java.lang.String username
           
 
Fields inherited from class org.acegisecurity.adapters.AbstractAdapterAuthenticationToken
 
Constructor Summary
protected PrincipalAcegiUserToken()
           
  PrincipalAcegiUserToken(java.lang.String key, java.lang.String username, java.lang.String password, GrantedAuthority[] authorities, java.lang.Object principal)
           
 
Method Summary
 java.lang.Object getCredentials()
          The credentials that prove the principal is correct.
 java.lang.String getName()
          This method returns a String that names this Principal.
 java.lang.Object getPrincipal()
          The identity of the principal being authenticated.
 
Methods inherited from class org.acegisecurity.adapters.AbstractAdapterAuthenticationToken
equals, getAuthorities, getKeyHash, isAuthenticated, isUserInRole, setAuthenticated
 
Methods inherited from class org.acegisecurity.providers.AbstractAuthenticationToken
getDetails, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 
Methods inherited from interface org.acegisecurity.Authentication
getDetails
 

Field Detail

principal

private java.lang.Object principal

password

private java.lang.String password

username

private java.lang.String username
Constructor Detail

PrincipalAcegiUserToken

public PrincipalAcegiUserToken(java.lang.String key,
                               java.lang.String username,
                               java.lang.String password,
                               GrantedAuthority[] authorities,
                               java.lang.Object principal)

PrincipalAcegiUserToken

protected PrincipalAcegiUserToken()
Method Detail

getCredentials

public java.lang.Object getCredentials()
Description copied from interface: org.acegisecurity.Authentication
The credentials that prove the principal is correct. This is usually a password, but could be anything relevant to the AuthenticationManager. Callers are expected to populate the credentials.

Specified by:
getCredentials in interface org.acegisecurity.Authentication

getName

public java.lang.String getName()
Description copied from interface: java.security.Principal
This method returns a String that names this Principal.

Specified by:
getName in interface java.security.Principal

getPrincipal

public java.lang.Object getPrincipal()
Description copied from interface: org.acegisecurity.Authentication
The identity of the principal being authenticated. This is usually a username. Callers are expected to populate the principal.

Specified by:
getPrincipal in interface org.acegisecurity.Authentication