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

Quick Search    Search Deep

org.acegisecurity.adapters.jetty
Class JettyAcegiUserToken  view JettyAcegiUserToken download JettyAcegiUserToken.java

java.lang.Object
  extended byorg.acegisecurity.providers.AbstractAuthenticationToken
      extended byorg.acegisecurity.adapters.AbstractAdapterAuthenticationToken
          extended byorg.acegisecurity.adapters.jetty.JettyAcegiUserToken
All Implemented Interfaces:
org.acegisecurity.adapters.AuthByAdapter, org.acegisecurity.Authentication, java.security.Principal, java.io.Serializable, org.mortbay.http.UserPrincipal

public class JettyAcegiUserToken
extends org.acegisecurity.adapters.AbstractAdapterAuthenticationToken
implements org.mortbay.http.UserPrincipal

A Jetty compatible org.acegisecurity.Authentication object.

Version:
$Id: JettyAcegiUserToken.java,v 1.5 2005/11/17 00:56:28 benalex Exp $

Field Summary
private  java.lang.String password
           
private  java.lang.String username
           
 
Fields inherited from class org.acegisecurity.adapters.AbstractAdapterAuthenticationToken
 
Constructor Summary
protected JettyAcegiUserToken()
           
  JettyAcegiUserToken(java.lang.String key, java.lang.String username, java.lang.String password, GrantedAuthority[] authorities)
           
 
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 org.mortbay.http.UserPrincipal
isAuthenticated, isUserInRole
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 
Methods inherited from interface org.acegisecurity.Authentication
getDetails
 

Field Detail

password

private java.lang.String password

username

private java.lang.String username
Constructor Detail

JettyAcegiUserToken

public JettyAcegiUserToken(java.lang.String key,
                           java.lang.String username,
                           java.lang.String password,
                           GrantedAuthority[] authorities)

JettyAcegiUserToken

protected JettyAcegiUserToken()
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