com.ibm.websphere.security.auth.callback

Class WSAuthMechOidCallbackImpl

  1. java.lang.Object
  2. extended bycom.ibm.websphere.security.auth.callback.WSAuthMechOidCallbackImpl
All implemented interfaces:
javax.security.auth.callback.Callback

  1. public class WSAuthMechOidCallbackImpl
  2. extends java.lang.Object
  3. 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:

  1. The Kerberos authentication mechanism OID is "1.2.840.113554.1.2.2"
  2. The LTPA authentication mechanism OID is "1.3.18.0.2.30.2"
  3. The BasicAuth(GSSUP) authentication mechanism OID is "2.23.130.1.1.1"

Since:
1.0
Version:
1.0

Constructor Summary

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.

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getAuthMechOid()
Return the authentication mechanism OID.
  1. java.lang.String
getdefaultAuthMechOid()
Return the default realm name.
  1. java.lang.String
getPrompt()
Return the prompt.
  1. void
setAuthMechOid(java.lang.String authMechOid)
Set the authentication mechanism OID.
  1. java.lang.String
toString()
Returns the name of the Callback.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructor Detail

WSAuthMechOidCallbackImpl

  1. public WSAuthMechOidCallbackImpl( java.lang.String prompt)

Construct a WSAuthMechOidCallbackImpl object with a prompt hint.

Parameters:
prompt - The prompt hint.

WSAuthMechOidCallbackImpl

  1. public WSAuthMechOidCallbackImpl( java.lang.String prompt,
  2. java.lang.String authMechOid)

Construct a WSAuthMechOidCallbackImpl object with a prompt hint and an authentication mechanism OID.

Parameters:
prompt - The prompt hint.
authMechOid - The authentication mechanism OID.

Method Detail

setAuthMechOid

  1. public void setAuthMechOid(java.lang.String authMechOid)

Set the authentication mechanism OID.

Parameters:
authMechOid - The authentication mechanism OID.

getAuthMechOid

  1. public java.lang.String getAuthMechOid( )

Return the authentication mechanism OID.

Returns:
The authentication mechanism OID, could be null.

getdefaultAuthMechOid

  1. public java.lang.String getdefaultAuthMechOid( )

Return the default realm name.

Returns:
The default authentication mechanism OID depend on resource, could be null.

getPrompt

  1. public java.lang.String getPrompt( )

Return the prompt. If the prompt set in Constructor is null, then null is returned.

Returns:
The prompt, could be null.

toString

  1. public java.lang.String toString( )

Returns the name of the Callback. Typically, it is the name of the class.

Overrides:
toString in class java.lang.Object
Returns:
The name of the Callback.