org.apache.jetspeed.security.spi.impl
Class InternalPasswordCredentialInterceptorsProxy

java.lang.Object
  extended by org.apache.jetspeed.security.spi.impl.InternalPasswordCredentialInterceptorsProxy
All Implemented Interfaces:
org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor

public class InternalPasswordCredentialInterceptorsProxy
extends Object
implements org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor

Provides a wrapper around a list of interceptors so multiple interceptors can be used with the DefaultCredentialHandler. Each interceptor will be invoked sequentially.

Version:
$Id$
Author:
Ate Douma

Field Summary
private  org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor[] interceptors
           
 
Constructor Summary
InternalPasswordCredentialInterceptorsProxy(List interceptors)
           
 
Method Summary
 boolean afterAuthenticated(org.apache.jetspeed.security.om.InternalUserPrincipal internalUser, String userName, org.apache.jetspeed.security.om.InternalCredential credential, boolean authenticated)
           
 boolean afterLoad(org.apache.jetspeed.security.spi.PasswordCredentialProvider pcProvider, String userName, org.apache.jetspeed.security.om.InternalCredential credential)
           
 void beforeCreate(org.apache.jetspeed.security.om.InternalUserPrincipal internalUser, Collection credentials, String userName, org.apache.jetspeed.security.om.InternalCredential credential, String password)
           
 void beforeSetPassword(org.apache.jetspeed.security.om.InternalUserPrincipal internalUser, Collection credentials, String userName, org.apache.jetspeed.security.om.InternalCredential credential, String password, boolean authenticated)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interceptors

private org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor[] interceptors
Constructor Detail

InternalPasswordCredentialInterceptorsProxy

public InternalPasswordCredentialInterceptorsProxy(List interceptors)
Method Detail

afterLoad

public boolean afterLoad(org.apache.jetspeed.security.spi.PasswordCredentialProvider pcProvider,
                         String userName,
                         org.apache.jetspeed.security.om.InternalCredential credential)
                  throws org.apache.jetspeed.security.SecurityException
Specified by:
afterLoad in interface org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
InternalPasswordCredentialInterceptor.afterLoad(org.apache.jetspeed.security.spi.PasswordCredentialProvider, java.lang.String, org.apache.jetspeed.security.om.InternalCredential)

afterAuthenticated

public boolean afterAuthenticated(org.apache.jetspeed.security.om.InternalUserPrincipal internalUser,
                                  String userName,
                                  org.apache.jetspeed.security.om.InternalCredential credential,
                                  boolean authenticated)
                           throws org.apache.jetspeed.security.SecurityException
Specified by:
afterAuthenticated in interface org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
InternalPasswordCredentialInterceptor.afterAuthenticated(org.apache.jetspeed.security.om.InternalUserPrincipal, java.lang.String, org.apache.jetspeed.security.om.InternalCredential, boolean)

beforeCreate

public void beforeCreate(org.apache.jetspeed.security.om.InternalUserPrincipal internalUser,
                         Collection credentials,
                         String userName,
                         org.apache.jetspeed.security.om.InternalCredential credential,
                         String password)
                  throws org.apache.jetspeed.security.SecurityException
Specified by:
beforeCreate in interface org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
InternalPasswordCredentialInterceptor.beforeCreate(org.apache.jetspeed.security.om.InternalUserPrincipal, java.util.Collection, java.lang.String, InternalCredential, java.lang.String)

beforeSetPassword

public void beforeSetPassword(org.apache.jetspeed.security.om.InternalUserPrincipal internalUser,
                              Collection credentials,
                              String userName,
                              org.apache.jetspeed.security.om.InternalCredential credential,
                              String password,
                              boolean authenticated)
                       throws org.apache.jetspeed.security.SecurityException
Specified by:
beforeSetPassword in interface org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
InternalPasswordCredentialInterceptor.beforeSetPassword(org.apache.jetspeed.security.om.InternalUserPrincipal, java.util.Collection, java.lang.String, org.apache.jetspeed.security.om.InternalCredential, java.lang.String, boolean)


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