|
SiteMinder Java SDK r12.51 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SmAuthScheme
The base interface in the Java Authentication API that each custom authentication scheme class must implement. SiteMinder calls the methods in the custom class.
The Java Authentication API allows you to create custom authentication schemes to provide authentication services not offered by any of the standard SiteMinder authentication schemes. See Create a Custom Authentication Scheme in the Programming Guide for Java for general information about authentication schemes.
Other classes in the Java Authentication API:
SmAuthenticationContext
SmAuthenticationResult
SmAuthQueryCode
SmAuthQueryResponse
SmAuthStatus
UserCredentialsContext
| Method Summary | |
|---|---|
SmAuthenticationResult |
authenticate(java.lang.String parameter,
java.lang.String secret,
int challengeReason,
SmAuthenticationContext context)
Performs the custom authentication and returns the authentication result. |
SmAuthStatus |
init(java.lang.String parameter,
java.lang.String secret)
Performs any initialization procedures that the authentication scheme requires. |
SmAuthStatus |
query(java.lang.String parameter,
java.lang.String secret,
SmAuthQueryCode request,
SmAuthQueryResponse response)
Returns information about the authentication scheme or about the kind of credentials that the authentication scheme requires. |
SmAuthStatus |
release(java.lang.String parameter,
java.lang.String secret)
Performs any rundown procedures that the authentication scheme requires. |
| Method Detail |
|---|
SmAuthStatus query(java.lang.String parameter,
java.lang.String secret,
SmAuthQueryCode request,
SmAuthQueryResponse response)
Returns information about the authentication scheme or about the kind of credentials that the authentication scheme requires. The type of information returned to SiteMinder depends upon the type of information SiteMinder specifies when calling the method.
SiteMinder passes the type of information it is looking for in therequest parameter. The authentication scheme
returns the information in the output parameter response.
parameter - The optional parameter string specified in the Policy Server
User Interface, to be used in any way that the authentication
scheme requires.secret - The shared secret specified for the authentication scheme
in the Policy Server User Interface. The shared secret is used
for any purpose that the authentication scheme requires, such
as enryption or credentials operations. Your authentication scheme
may or may not require a shared secret.request - The request code. The type of information that the
authentication scheme returns in response depends
upon the request code that SiteMinder passes, as follows:
response - The requested information to pass back to SiteMinder.
SMAUTH_SUCCESS on success,
or SMAUTH_FAILURE on failure.
SmAuthStatus init(java.lang.String parameter,
java.lang.String secret)
Performs any initialization procedures that the authentication scheme requires.
SiteMinder calls this method once for each authentication scheme instance, when the authentication scheme is loaded.
parameter - The optional parameter string specified in the Policy Server
User Interface, to be used in any way that the authentication
scheme requires.secret - The shared secret specified for the authentication scheme
in the Policy Server User Interface. The shared secret is used
for any purpose that the authentication scheme requires, such
as enryption or credentials operations. Your authentication scheme
may or may not require a shared secret.
SMAUTH_SUCCESS on success,
or SMAUTH_FAILURE on failure.
SmAuthStatus release(java.lang.String parameter,
java.lang.String secret)
Performs any rundown procedures that the authentication scheme requires.
SiteMinder calls this method once for each authentication scheme instance, when SiteMinder is shutting down.
parameter - The optional parameter string specified in the Policy Server
User Interface, to be used in any way that the authentication
scheme requires.secret - The shared secret specified for the authentication scheme
in the Policy Server User Interface. The shared secret is used
for any purpose that the authentication scheme requires, such
as enryption or credentials operations. Your authentication scheme
may or may not require a shared secret.
SMAUTH_SUCCESS on success,
or SMAUTH_FAILURE on failure.
SmAuthenticationResult authenticate(java.lang.String parameter,
java.lang.String secret,
int challengeReason,
SmAuthenticationContext context)
Performs the custom authentication and returns the authentication result.
SiteMinder calls this method at least twice -- during user disambiguation and during user authentication. For information about these two phases of the authentication process, see the Programming Guide for Java.
parameter - The optional parameter string specified in the Policy Server
User Interface, to be used in any way that the authentication
scheme requires.secret - The shared secret specified for the authentication scheme
in the Policy Server User Interface. The shared secret is used
for any purpose that the authentication scheme requires, such
as enryption or credentials operations. Your authentication scheme
may or may not require a shared secret.challengeReason - The reason code from a previous authentication that failed
or was challenged, or 0 if unknown. The reason code that
SiteMinder passes is the REASON_ constant
that the authentication scheme returned in
SmAuthenticationResult
after the failed or challenged authentication.context - Contains request context objects, and also methods for passing
error and user messages directly to SiteMinder.
SmAuthenticationResult object
containing status and reason codes. How the returned status code
is interpreted depends upon the phase during which SiteMinder
called the authentication scheme, as follows:
SMAUTH_NO_USER_CONTEXT
setUserText().
SMAUTH_SUCCESS
The authentication scheme asks SiteMinder to disambiguate the user.
When returning this status code, pass the user's login ID in
setUserText().
SMAUTH_SUCCESS_USER_DN
setUserText().
Only one DN or database ID can be passed at one time.
SMAUTH_ATTEMPT
SMAUTH_FAILURE
setUserText().
SMAUTH_ACCEPT
SMAUTH_REJECT
SMAUTH_CHALLENGE
setUserText().
Also, a reason code must be supplied in the
SmAuthenticationResult object
returned by authenticate(). SiteMinder will pass back
this reason code in the challengeReason
parameter in a subsequent call to authenticate().
SMAUTH_FAILURE
setUserText().
|
Java SDK r12.51 Mon 04/08/2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||