|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
com.oracle.sft.api.AuthenticationCallback
public class AuthenticationCallback
An instance of AuthenticationCallback will be passed to the CallbackHandler that is set by the application in the CommunicationService when an authentication challenge response is sent to SFT. The SFT will then collect the username and password provided by the CallbackHandler and these credentials will then be used for responding to the authentication challenge.
CommunicationService.setAuthenticationCallbackHandler(javax.security.auth.callback.CallbackHandler), Callback, CallbackHandler| Nested Class Summary | |
|---|---|
static class |
AuthenticationCallback.ChallengeTypeType of Challenge for which the CallbackHandler is invoked. |
| Constructor Summary | |
|---|---|
AuthenticationCallback(AuthenticationCallback.ChallengeType challengeType, Communication communication, String realm)Creates a AuthenticationCallback for an authentication challenge. |
|
| Method Summary | |
|---|---|
AuthenticationCallback.ChallengeType |
getChallengeType()CallbackHandler implementation retrieve the type of challenge using this method. |
Communication |
getCommunication()Retrieve the Communication whose challenge response has reached SFT. |
char[] |
getPassword()Retrieve the password as a char array set by the CallbackHandler implementation. |
String |
getRealm()Retrieve the realm of the authentication challenge. |
String |
getUserName()Retrieve the username for responding to the authentication challenge. |
void |
setPassword(char[] password)Set the password as a char array. |
void |
setRealm(String realm)Set the realm of the authentication challenge. |
void |
setUserName(String userName)Set the username for responding to the authentication challenge. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationCallback(AuthenticationCallback.ChallengeType challengeType,
Communication communication,
String realm)
AuthenticationCallback for an authentication challenge.
challengeType - Type of Challengecommunication - The Communication for the authentication challengerealm - Realm used in the authentication challenge.| Method Detail |
|---|
public Communication getCommunication()
Communicaion instance.public AuthenticationCallback.ChallengeType getChallengeType()
CallbackHandler implementation retrieve the type of challenge using this method.ChallengeType of the challenge.public char[] getPassword()
public void setPassword(char[] password)
public void setRealm(String realm)
realm - The realm of the authentication challenge.public String getRealm()
CallbackHandler.public String getUserName()
public void setUserName(String userName)
userName - The for responding to the authentication authentication.
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2012 Oracle Corporation. All Rights Reserved.