org.apache.jetspeed.security.activeauthentication
Class ActiveAuthenticationIdentityProviderImpl

java.lang.Object
  extended by org.apache.jetspeed.security.activeauthentication.ActiveAuthenticationIdentityProviderImpl
All Implemented Interfaces:
ActiveAuthenticationIdentityProvider

public class ActiveAuthenticationIdentityProviderImpl
extends java.lang.Object
implements ActiveAuthenticationIdentityProvider

AuthenticationCacheBeanImpl

Short-lived cache implementation to bridge deficiencies in Java Login Modules and general Active Authentication patterns based on Java login modules. Caches Authentication information across redirects, requests, and threads. The life-time of this cached authentication information is meant to be very short lived.

Version:
$Id: $
Author:
David Sean Taylor

Constructor Summary
ActiveAuthenticationIdentityProviderImpl(JetspeedCache cache, java.util.List sessionAttributes)
           
 
Method Summary
 void completeAuthenticationEvent(java.lang.String token)
          Completes an authentication event for a given authentication token
 IdentityToken createIdentityToken()
          Start an authentication event with the server, creating a new and unique identity token
 IdentityToken createIdentityToken(java.lang.String seed)
          Start an authentication event with the server, creating a new and unique identity token
 java.util.List getSessionAttributeNames()
          Get a list of session attribute names that should be saved and restored upon authentication events
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActiveAuthenticationIdentityProviderImpl

public ActiveAuthenticationIdentityProviderImpl(JetspeedCache cache,
                                                java.util.List sessionAttributes)
Method Detail

createIdentityToken

public IdentityToken createIdentityToken(java.lang.String seed)
Description copied from interface: ActiveAuthenticationIdentityProvider
Start an authentication event with the server, creating a new and unique identity token

Specified by:
createIdentityToken in interface ActiveAuthenticationIdentityProvider
Parameters:
seed - seed information to add to token
Returns:
the newly created identity token

createIdentityToken

public IdentityToken createIdentityToken()
Description copied from interface: ActiveAuthenticationIdentityProvider
Start an authentication event with the server, creating a new and unique identity token

Specified by:
createIdentityToken in interface ActiveAuthenticationIdentityProvider
Returns:
the newly created identity token

completeAuthenticationEvent

public void completeAuthenticationEvent(java.lang.String token)
Description copied from interface: ActiveAuthenticationIdentityProvider
Completes an authentication event for a given authentication token

Specified by:
completeAuthenticationEvent in interface ActiveAuthenticationIdentityProvider
Parameters:
token - The token identifying the authentication event to be completed

getSessionAttributeNames

public java.util.List getSessionAttributeNames()
Description copied from interface: ActiveAuthenticationIdentityProvider
Get a list of session attribute names that should be saved and restored upon authentication events

Specified by:
getSessionAttributeNames in interface ActiveAuthenticationIdentityProvider
Returns:
list of session attribute names


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.