edu.vt.middleware.registry.manage.password
Class PasswordChangeBean

java.lang.Object
  extended by edu.vt.middleware.registry.manage.AbstractManager
      extended by edu.vt.middleware.registry.manage.AbstractManagerEndpoint
          extended by edu.vt.middleware.registry.manage.password.PasswordChangeBean
All Implemented Interfaces:
PasswordChange, Manager, PasswordChangeLocal, PasswordChangeRemote, Provider<Source>

@DeclareRoles(value={"ADMIN","PORTAL"})
@RunAs(value="ADMIN")
@WebServiceProvider(wsdlLocation="/META-INF/wsdl/PasswordChange.wsdl",
                    serviceName="PasswordChangeService",
                    portName="PasswordChange",
                    targetNamespace="http://middleware.vt.edu/ws/ed/manage/password/")
@ServiceMode(value=PAYLOAD)
public class PasswordChangeBean
extends AbstractManagerEndpoint
implements PasswordChangeLocal, PasswordChangeRemote

PasswordChangeBean is a SessionBean which contains all the methods necessary for checking and changing passwords.

Version:
$Revision: 7900 $
Author:
Daniel Fisher

Field Summary
private  edu.vt.middleware.ldap.Authenticator auth
          Used to authenticate users
private  CheckPassword cp
          Password strength checker
private  String emailBounceAddress
          Email bounce address
private  String emailClass
          Emailer implementation
private  String emailFrom
          Email from address
private  String emailHost
          Email host
private  String emailReplyTo
          Email reply to address
private  String emailResetBody
          Email reset body
private  String emailResetSubject
          Email reset subject
private static Log LOG
          Log for this class
private  String passwordResetUrl
          URL of the password reset webapp
private  RegistryFinder registryFinder
          Class for finding registry beans
private  RegistryUpdater registryUpdater
          Class for updating the registry
private  Mailer resetEmailer
          For sending reset emails
private  int resetExpiration
          Time in minutes that a pasword reset is valid
private  TicketManager ticketManager
          Class for using the ticketmanager
 
Fields inherited from class edu.vt.middleware.registry.manage.AbstractManager
logger, sessionContext
 
Fields inherited from interface edu.vt.middleware.ed.manage.PasswordChange
LOCAL_JNDI_NAME, REMOTE_JNDI_NAME
 
Fields inherited from interface edu.vt.middleware.ed.manage.PasswordChange
LOCAL_JNDI_NAME, REMOTE_JNDI_NAME
 
Constructor Summary
PasswordChangeBean()
           
 
Method Summary
 void changePassword(String userid, String oldPass, String newPass)
          
 void checkPassword(String userid, String newPass)
          
 void expirePassword(String userid)
          
 void init()
          This performs all operations necessary to initialize this object.
 void requestReset(String userid)
          
 void setEmailBounceAddress(String s)
          Sets the email bounce address.
 void setEmailClass(String s)
          Sets the mailer class.
 void setEmailFrom(String s)
          Sets the email from.
 void setEmailHost(String s)
          Sets the email host.
 void setEmailReplyTo(String s)
          Sets the email reply to.
 void setEmailResetBody(String s)
          Sets the email reset body.
 void setEmailResetSubject(String s)
          Sets the email reset subject.
 void setEntityManager(EntityManager em)
          Sets the Entity Manager.
 void setPassword(String userid, String newPass, boolean expire)
          
 void setPasswordResetUrl(String s)
          Sets the password reset webapp url.
 void setResetExpiration(Integer i)
          Sets the number of minutes a password reset is valid for.
 void setTicketManager(TicketManagerLocal tm)
          Sets the Ticket Manager.
 
Methods inherited from class edu.vt.middleware.registry.manage.AbstractManagerEndpoint
invoke
 
Methods inherited from class edu.vt.middleware.registry.manage.AbstractManager
addEntitlementToReplicate, addGroupToReplicate, addPersonToReplicate, addServiceToReplicate, getReplChanges, getSystemCalendar, setEnqueueReplication, setSessionContext, setSystemCalendar
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final Log LOG
Log for this class


cp

private CheckPassword cp
Password strength checker


auth

private edu.vt.middleware.ldap.Authenticator auth
Used to authenticate users


registryUpdater

private RegistryUpdater registryUpdater
Class for updating the registry


registryFinder

private RegistryFinder registryFinder
Class for finding registry beans


ticketManager

private TicketManager ticketManager
Class for using the ticketmanager


passwordResetUrl

private String passwordResetUrl
URL of the password reset webapp


resetExpiration

private int resetExpiration
Time in minutes that a pasword reset is valid


emailClass

private String emailClass
Emailer implementation


emailHost

private String emailHost
Email host


emailFrom

private String emailFrom
Email from address


emailReplyTo

private String emailReplyTo
Email reply to address


emailBounceAddress

private String emailBounceAddress
Email bounce address


emailResetSubject

private String emailResetSubject
Email reset subject


emailResetBody

private String emailResetBody
Email reset body


resetEmailer

private Mailer resetEmailer
For sending reset emails

Constructor Detail

PasswordChangeBean

public PasswordChangeBean()
Method Detail

setEntityManager

public void setEntityManager(EntityManager em)
Sets the Entity Manager.

Parameters:
em - EntityManager

setTicketManager

public void setTicketManager(TicketManagerLocal tm)
Sets the Ticket Manager.

Parameters:
tm - TicketManager

setPasswordResetUrl

public void setPasswordResetUrl(String s)
Sets the password reset webapp url.

Parameters:
s - String

setResetExpiration

public void setResetExpiration(Integer i)
Sets the number of minutes a password reset is valid for.

Parameters:
i - Integer

setEmailClass

public void setEmailClass(String s)
Sets the mailer class.

Parameters:
s - String

setEmailHost

public void setEmailHost(String s)
Sets the email host.

Parameters:
s - String

setEmailFrom

public void setEmailFrom(String s)
Sets the email from.

Parameters:
s - String

setEmailReplyTo

public void setEmailReplyTo(String s)
Sets the email reply to.

Parameters:
s - String

setEmailBounceAddress

public void setEmailBounceAddress(String s)
Sets the email bounce address.

Parameters:
s - String

setEmailResetSubject

public void setEmailResetSubject(String s)
Sets the email reset subject.

Parameters:
s - String

setEmailResetBody

public void setEmailResetBody(String s)
Sets the email reset body.

Parameters:
s - String

init

@PostConstruct
public void init()
This performs all operations necessary to initialize this object.

Overrides:
init in class AbstractManagerEndpoint

checkPassword

@RolesAllowed(value={"ADMIN","PORTAL"})
public void checkPassword(String userid,
                                            String newPass)
                   throws ApplicationException

Specified by:
checkPassword in interface PasswordChange
Throws:
ApplicationException

setPassword

@RolesAllowed(value={"ADMIN","PORTAL"})
public void setPassword(String userid,
                                          String newPass,
                                          boolean expire)
                 throws ApplicationException

Specified by:
setPassword in interface PasswordChange
Throws:
ApplicationException

changePassword

@RolesAllowed(value={"ADMIN","PORTAL"})
public void changePassword(String userid,
                                             String oldPass,
                                             String newPass)
                    throws ApplicationException

Specified by:
changePassword in interface PasswordChange
Throws:
ApplicationException

expirePassword

@RolesAllowed(value="ADMIN")
public void expirePassword(String userid)
                    throws ApplicationException

Specified by:
expirePassword in interface PasswordChange
Throws:
ApplicationException

requestReset

@RolesAllowed(value={"ADMIN","PORTAL"})
public void requestReset(String userid)
                  throws ApplicationException

Specified by:
requestReset in interface PasswordChange
Throws:
ApplicationException


Copyright © 2008 Virginia Tech. All Rights Reserved.