In my opinion, you are going in the wrong direction. Using your LoginModule password change approach has some problems.
- "" , "" .
TextInputCallback
, , .
TextInputCallback
, , , PIN- ( )
, CallbackHandler
, , , , scren.- LoginModule - LoginModule / .
, / , ,
, . xxxCallback
.
Exceptions
, CredentialExpiredException
, ,
. , Oracle WebLogic JAAS
, / LoginModule
, Callback
PasswordChangeCallback
ConfirmPasswordCallback
, NewPasswordCallback
, VerifyNewPasswordCallback
LoginModule
, . , .
CallbackHandler
.
JAAS CallbackHander
* CallbackHandler
API CallbackHandler
CallbackHandler auth.login.defaultCallbackHandler. Java, /lib/security/java.security. java.home , JRE.
LoginContext
.
LoginContext
, CallbackHandler
public LoginContext(String name, CallbackHandler callbackHandler)
throws LoginException
public LoginContext(String name, Subject subject,
CallbackHandler callbackHandler) throws LoginException
. API LoginContext
?
, . .
TextInputCallback
?
CallbackHandler
PasswordCallback
. , Login CallbackHandler
.
void handle(Callback[] callbacks)
, handle
, CallbackHandler
API CallbackHandler
handle
.