public class ObAuthenticationScheme extends java.lang.Object implements ObAuthenticationSchemeInterface, java.lang.Cloneable
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 and Description |
---|
ObAuthenticationScheme(ObResourceRequest res)
Deprecated.
Constructs ObAuthenticationScheme object for the specified
ObResourceRequest.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Deprecated.
Used to clone ObAuthenticationScheme Objects.
|
void |
finalize()
Deprecated.
Cleans up native ObAuthenticationScheme objects.
|
java.util.Hashtable |
getAllChallengeParameters()
Deprecated.
Returns all the challenge parameters specified during configuration for
a given authentication scheme
|
java.lang.String |
getChallengeParameter(java.lang.String paramName)
Deprecated.
Returns a value of a given challenge parameters by name, as specified
during configuration
|
int |
getLevel()
Deprecated.
Returns the numeric authentication level as specified during authentication
scheme configuration
|
java.lang.String |
getName()
Deprecated.
Returns the display name of the authentication scheme
|
int |
getNumberOfChallengeParameters()
Deprecated.
Returns the current number of challenge parameters in authentication scheme
|
java.lang.String |
getRedirectUrl()
Deprecated.
Returns the URL specified during configuration, to be used for redirecting
the clients for authentication
|
boolean |
isBasic()
Deprecated.
Returns true if authentication scheme is Basic
|
boolean |
isCertificate()
Deprecated.
Returns true if scheme requires digitial certificates,else returns false
|
boolean |
isForm()
Deprecated.
Returns true if scheme requires FORM based authentication
|
boolean |
isNone()
Deprecated.
Returns true if authentication is not required, else returns false
|
boolean |
requiresSecureTransport()
Deprecated.
Returns true if scheme requires SSL client connection, else returns false
|
public ObAuthenticationScheme(ObResourceRequest res) throws ObAccessException
res
- Resource object for which the authentication scheme
object is being constructedObAccessException
- In case of failure to create the object
or if resource object is nullpublic void finalize()
ObAuthenticationSchemeInterface
finalize
in interface ObAuthenticationSchemeInterface
finalize
in class java.lang.Object
public java.lang.String getName()
getName
in interface ObAuthenticationSchemeInterface
ObAccessRuntimeException
- In case if it fails to return the
authentication scheme name or if it returns null String.public boolean requiresSecureTransport()
requiresSecureTransport
in interface ObAuthenticationSchemeInterface
ObAccessRuntimeException
- In case if it fails to return the boolean
value for transport security.public boolean isBasic()
isBasic
in interface ObAuthenticationSchemeInterface
ObAccessRuntimeException
- In case if it fails to return the boolean
value for authentication scheme type is Basic or not.public boolean isCertificate()
isCertificate
in interface ObAuthenticationSchemeInterface
ObAccessRuntimeException
- In case if it fails to return the boolean
value for scheme requires digitial certificates or not.public boolean isForm()
isForm
in interface ObAuthenticationSchemeInterface
ObAccessRuntimeException
- In case if it fails to return the boolean
value for authentication scheme type is Form or not.public boolean isNone()
isNone
in interface ObAuthenticationSchemeInterface
ObAccessRuntimeException
- In case if it fails to return the boolean
value for authentication required or not.public int getLevel()
getLevel
in interface ObAuthenticationSchemeInterface
ObAccessRuntimeException
- In case if it fails to return the
authentication levelpublic java.lang.String getRedirectUrl()
getRedirectUrl
in interface ObAuthenticationSchemeInterface
ObAccessRuntimeException
- In case if it fails to return the URL string for redirection
or if it returns null stringpublic int getNumberOfChallengeParameters()
getNumberOfChallengeParameters
in interface ObAuthenticationSchemeInterface
ObAccessRuntimeException
- In case if it fails to return the number
of challenge parameterspublic java.lang.String getChallengeParameter(java.lang.String paramName)
getChallengeParameter
in interface ObAuthenticationSchemeInterface
paramName
- name of the challenge parameterObAccessRuntimeException
- In case if it fails to return the
challenge parameter value for the given parameterNamepublic java.util.Hashtable getAllChallengeParameters()
getAllChallengeParameters
in interface ObAuthenticationSchemeInterface
ObAccessRuntimeException
- In case if it fails to return all
the challenge parameterspublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException