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

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

public class DefaultCredentialHandler
extends Object
implements org.apache.jetspeed.security.spi.CredentialHandler

Author:
David Le Strat
See Also:
CredentialHandler

Field Summary
private  org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor ipcInterceptor
           
private static org.apache.commons.logging.Log log
           
private  org.apache.jetspeed.security.spi.PasswordCredentialProvider pcProvider
           
private  org.apache.jetspeed.security.spi.SecurityAccess securityAccess
           
 
Constructor Summary
DefaultCredentialHandler(org.apache.jetspeed.security.spi.SecurityAccess securityAccess, org.apache.jetspeed.security.spi.PasswordCredentialProvider pcProvider, org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor ipcInterceptor)
           
 
Method Summary
 boolean authenticate(String userName, String password)
           
private  org.apache.jetspeed.security.om.InternalCredential getPasswordCredential(org.apache.jetspeed.security.om.InternalUserPrincipal internalUser, String username)
           
 Set getPrivateCredentials(String username)
           
 Set getPublicCredentials(String username)
           
 void importPassword(String userName, String newPassword)
           
 void setPassword(String userName, String oldPassword, String newPassword)
           
protected  void setPassword(String userName, String oldPassword, String newPassword, boolean raw)
           
 void setPasswordEnabled(String userName, boolean enabled)
           
 void setPasswordExpiration(String userName, Date expirationDate)
           
 void setPasswordUpdateRequired(String userName, boolean updateRequired)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

securityAccess

private org.apache.jetspeed.security.spi.SecurityAccess securityAccess

pcProvider

private org.apache.jetspeed.security.spi.PasswordCredentialProvider pcProvider

ipcInterceptor

private org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor ipcInterceptor
Constructor Detail

DefaultCredentialHandler

public DefaultCredentialHandler(org.apache.jetspeed.security.spi.SecurityAccess securityAccess,
                                org.apache.jetspeed.security.spi.PasswordCredentialProvider pcProvider,
                                org.apache.jetspeed.security.spi.InternalPasswordCredentialInterceptor ipcInterceptor)
Method Detail

getPrivateCredentials

public Set getPrivateCredentials(String username)
Specified by:
getPrivateCredentials in interface org.apache.jetspeed.security.spi.CredentialHandler
See Also:
CredentialHandler.getPrivateCredentials(java.lang.String)

getPublicCredentials

public Set getPublicCredentials(String username)
Specified by:
getPublicCredentials in interface org.apache.jetspeed.security.spi.CredentialHandler
See Also:
CredentialHandler.getPublicCredentials(java.lang.String)

getPasswordCredential

private org.apache.jetspeed.security.om.InternalCredential getPasswordCredential(org.apache.jetspeed.security.om.InternalUserPrincipal internalUser,
                                                                                 String username)

setPassword

public void setPassword(String userName,
                        String oldPassword,
                        String newPassword)
                 throws org.apache.jetspeed.security.SecurityException
Specified by:
setPassword in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
CredentialHandler.setPassword(java.lang.String,java.lang.String,java.lang.String)

importPassword

public void importPassword(String userName,
                           String newPassword)
                    throws org.apache.jetspeed.security.SecurityException
Specified by:
importPassword in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
CredentialHandler.importPassword(java.lang.String,java.lang.String)

setPassword

protected void setPassword(String userName,
                           String oldPassword,
                           String newPassword,
                           boolean raw)
                    throws org.apache.jetspeed.security.SecurityException
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
org.apache.jetspeed.security.spi.CredentialHandler#setPassword(java.lang.String,java.lang.String,java.lang.String, boolean)

setPasswordEnabled

public void setPasswordEnabled(String userName,
                               boolean enabled)
                        throws org.apache.jetspeed.security.SecurityException
Specified by:
setPasswordEnabled in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
CredentialHandler.setPasswordEnabled(java.lang.String, boolean)

setPasswordUpdateRequired

public void setPasswordUpdateRequired(String userName,
                                      boolean updateRequired)
                               throws org.apache.jetspeed.security.SecurityException
Specified by:
setPasswordUpdateRequired in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
CredentialHandler.setPasswordUpdateRequired(java.lang.String, boolean)

setPasswordExpiration

public void setPasswordExpiration(String userName,
                                  Date expirationDate)
                           throws org.apache.jetspeed.security.SecurityException
Specified by:
setPasswordExpiration in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
CredentialHandler.setPasswordExpiration(java.lang.String, java.sql.Date)

authenticate

public boolean authenticate(String userName,
                            String password)
                     throws org.apache.jetspeed.security.SecurityException
Specified by:
authenticate in interface org.apache.jetspeed.security.spi.CredentialHandler
Throws:
org.apache.jetspeed.security.SecurityException
See Also:
CredentialHandler.authenticate(java.lang.String, java.lang.String)


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