Skip navigation links

Oracle Access Manager Access SDK Java API Reference
11g Release 1 (11.1.1)

E22472-01


oracle.security.am.asdk
Class AuthenticationScheme

java.lang.Object
  extended by oracle.security.am.asdk.AuthenticationScheme

All Implemented Interfaces:
java.lang.Cloneable

public final class AuthenticationScheme
extends java.lang.Object
implements java.lang.Cloneable

Represents an Authentication Scheme and provides functionality to access related information.

An authentication scheme specifies how a user is to be challenged for a set of credentials, name-value string pairs (for example userid and password) that are used to authenticate a user.

An authentication scheme has:


Constructor Summary
AuthenticationScheme(AccessClient aClient, ResourceRequest resReq)
          Constructs AuthenticationScheme object for the specified ResourceRequest using specified AccessClient object.
AuthenticationScheme(AccessClient aClient, java.lang.String schemeId)
          Constructs AuthenticationScheme object for the specified scheme id using specified AccessClient object.
AuthenticationScheme(ResourceRequest resReq)
          Constructs AuthenticationScheme object for the specified ResourceRequest.
AuthenticationScheme(java.lang.String schemeId)
          Constructs AuthenticationScheme object for the specified scheme id.

 

Method Summary
 java.lang.Object clone()
          Used to clone AuthenticationScheme Objects.
 java.util.Hashtable getAllChallengeParameters()
          Returns all the challenge parameters specified during configuration for a given authentication scheme for example userid, password.
 java.lang.String getChallengeParameter(java.lang.String paramName)
          Returns challenge parameter value specified in authentication scheme
 int getLevel()
          Returns the numeric authentication level as specified during authentication scheme configuration
 long getMask()
          Returns integer value of authentication challenge method used for protecting the resource.
 java.lang.String getName()
          Returns the authentication scheme name
 int getNumberOfChallengeParameters()
          Returns number of challenge parameters in authentication scheme
 java.lang.String getRedirectUrl()
          Returns the URL specified during configuration, to be used for redirecting the clients for authentication
 java.lang.String getSchemeId()
          Returns the scheme id
 boolean isBasic()
          Checks if authentication scheme is of type Basic
 boolean isCertificate()
          Checks if authentication scheme is of type X509Cert
 boolean isForm()
          Checks if authentication scheme is of type Form
 boolean isNone()
          Checks if authentication scheme type is None i.e.Anonymous
 boolean requiresSecureTransport()
          Checks whether secure transport is required

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

AuthenticationScheme

public AuthenticationScheme(java.lang.String schemeId)
                     throws AccessException
Constructs AuthenticationScheme object for the specified scheme id.
Parameters:
schemeId - authentication scheme id, a string, for which the authentication scheme object is being constructed
Throws:
AccessException - In case of failure to create the object or if resource object is null

AuthenticationScheme

public AuthenticationScheme(AccessClient aClient,
                            java.lang.String schemeId)
                     throws AccessException
Constructs AuthenticationScheme object for the specified scheme id using specified AccessClient object.
Parameters:
aClient - AccessClient object to be used for perfoming operations.
schemeId - authentication scheme id, a string, for which the authentication scheme object is being constructed
Throws:
AccessException - in case of failure to create the object or if resource object is null

AuthenticationScheme

public AuthenticationScheme(ResourceRequest resReq)
                     throws AccessException
Constructs AuthenticationScheme object for the specified ResourceRequest.
Parameters:
resReq - resource object for which the authentication scheme object is being constructed
Throws:
AccessException - In case of failure to create the object or if resource object is null

AuthenticationScheme

public AuthenticationScheme(AccessClient aClient,
                            ResourceRequest resReq)
                     throws AccessException
Constructs AuthenticationScheme object for the specified ResourceRequest using specified AccessClient object.
Parameters:
aClient - AccessClient object to be used for perfoming operations.
resReq - resource object for which the authentication scheme object is being constructed
Throws:
AccessException - In case of failure to create the object or if resource object is null

Method Detail

getMask

public long getMask()
             throws AccessException
Returns integer value of authentication challenge method used for protecting the resource. Values returned are as follows: