Class LDAPCallbacks
- java.lang.Object
-
- com.sun.identity.authentication.modules.ldap.LDAPCallbacks
-
public class LDAPCallbacks extends Object
-
-
Constructor Summary
Constructors Constructor Description LDAPCallbacks(CallbackHandler callbackHandler, ResourceBundle bundle)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetConfirmPWD()protected StringgetNewPWD()protected StringgetOldPWD()protected StringgetUserName()protected StringgetUserPWD()voidsendMessage(int type, String msg)Instantiates and passes aTextOutputCallbackto theinvokeCallbackmethod of aCallbackHandlerto display information messages, warning messages and error messages.voidsetLoginScreen()Instantiates and passes a callbacks to theinvokeCallbackmethod of aCallbackHandlerto ask for user name and password to procees Login Page.voidsetPwdExpiryScreen()Instantiates and passes a callbacks to theinvokeCallbackmethod of aCallbackHandlerto ask for old, new and confirm passwords to procees change password screen.
-
-
-
Constructor Detail
-
LDAPCallbacks
public LDAPCallbacks(CallbackHandler callbackHandler, ResourceBundle bundle)
-
-
Method Detail
-
setLoginScreen
public void setLoginScreen() throws LoginExceptionInstantiates and passes a callbacks to theinvokeCallbackmethod of aCallbackHandlerto ask for user name and password to procees Login Page.- Throws:
LoginException- if no callback handler is available or the login callbacks cannot be presented to the user
-
setPwdExpiryScreen
public void setPwdExpiryScreen() throws LoginExceptionInstantiates and passes a callbacks to theinvokeCallbackmethod of aCallbackHandlerto ask for old, new and confirm passwords to procees change password screen.- Throws:
LoginException- if no callback handler is available or the change password callbacks cannot be presented to the user
-
sendMessage
public void sendMessage(int type, String msg) throws LoginExceptionInstantiates and passes aTextOutputCallbackto theinvokeCallbackmethod of aCallbackHandlerto display information messages, warning messages and error messages.- Parameters:
type- the message type to display, one of theTextOutputCallbackconstants (information, warning or error)msg- the message text to display to the user- Throws:
LoginException- if no callback handler is available or the message callback cannot be presented to the user
-
getUserName
protected String getUserName()
-
getUserPWD
protected String getUserPWD()
-
getOldPWD
protected String getOldPWD()
-
getNewPWD
protected String getNewPWD()
-
getConfirmPWD
protected String getConfirmPWD()
-
-