public class WSAuthMechOidCallbackImpl
extends java.lang.Object
implements javax.security.auth.callback.Callback
The WSAuthMechOidCallbackImpl
gathers the authentication mechanism universal object identifiers (OID)
from the constructor and pass it to the login module. The following list contains the OIDs for each authentication mechanism:
Constructor and Description |
---|
WSAuthMechOidCallbackImpl(java.lang.String prompt)
Construct a
WSAuthMechOidCallbackImpl object with a prompt hint. |
WSAuthMechOidCallbackImpl(java.lang.String prompt,
java.lang.String authMechOid)
Construct a
WSAuthMechOidCallbackImpl object with a prompt hint and
an authentication mechanism OID. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAuthMechOid()
Return the authentication mechanism OID.
|
java.lang.String |
getdefaultAuthMechOid()
Return the default realm name.
|
java.lang.String |
getPrompt()
Return the prompt.
|
void |
setAuthMechOid(java.lang.String authMechOid)
Set the authentication mechanism OID.
|
java.lang.String |
toString()
Returns the name of the Callback.
|
public WSAuthMechOidCallbackImpl(java.lang.String prompt)
Construct a WSAuthMechOidCallbackImpl
object with a prompt hint.
prompt
- The prompt hint.public WSAuthMechOidCallbackImpl(java.lang.String prompt, java.lang.String authMechOid)
Construct a WSAuthMechOidCallbackImpl
object with a prompt hint and
an authentication mechanism OID.
prompt
- The prompt hint.authMechOid
- The authentication mechanism OID.public void setAuthMechOid(java.lang.String authMechOid)
Set the authentication mechanism OID.
authMechOid
- The authentication mechanism OID.public java.lang.String getAuthMechOid()
Return the authentication mechanism OID.
null
.public java.lang.String getdefaultAuthMechOid()
Return the default realm name.
null
.public java.lang.String getPrompt()
Return the prompt. If the prompt set in Constructor
is null
, then null
is returned.
null
.public java.lang.String toString()
Returns the name of the Callback. Typically, it is the name of the class.
toString
in class java.lang.Object