public class AppCallbackHandler extends Object implements CallbackHandler
CallbackHandler
,
handle(Callback[])
Constructor and Description |
---|
AppCallbackHandler() |
AppCallbackHandler(boolean isConsoleHandler)
Create a new AppCallbackHandler.
|
AppCallbackHandler(Map<String,Object> mapOfValues)
Create a new AppCallbackHandler.
|
AppCallbackHandler(String prompt)
Create a new AppCallbackHandler.
|
AppCallbackHandler(String username,
char[] password) |
AppCallbackHandler(String username,
char[] password,
byte[] data) |
AppCallbackHandler(String username,
char[] password,
byte[] data,
String text) |
Modifier and Type | Method and Description |
---|---|
void |
clearCredential() |
Object |
getCredential() |
String |
getPrompt() |
void |
handle(Callback[] callbacks) |
void |
setCredential(Object credential) |
void |
setSecurityInfo(Principal p,
Object cred) |
public AppCallbackHandler()
public AppCallbackHandler(String username, char[] password)
public AppCallbackHandler(String username, char[] password, byte[] data)
public AppCallbackHandler(String username, char[] password, byte[] data, String text)
public AppCallbackHandler(boolean isConsoleHandler)
isConsoleHandler
- Denotes whether the input is from
the console.public AppCallbackHandler(String prompt)
prompt
- Prompt meaningful to the LoginModulepublic String getPrompt()
public Object getCredential()
public void setCredential(Object credential)
public void clearCredential()
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
IOException
UnsupportedCallbackException
Copyright © 2017 JBoss by Red Hat. All rights reserved.