|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.adf.model.connection.url.ChallengeAuthentication
public class ChallengeAuthentication
ChallengeAuthentication provides Basic / Digest variants of simple username
password authentication for the URLConnection
.
The Default variant is BASIC Authentication as configured in metadata.
The variant is decided when the ChallengeAuthentication is instantiated.
ChallengeAuthentication(String realm, boolean useDigest)
.
A value of true
for the useDigest
param will
enable Digest
authentication.
AuthenticationScheme
Field Summary | |
---|---|
static java.lang.String |
PASSWORD
|
static java.lang.String |
USERNAME
|
Fields inherited from interface oracle.adf.model.connection.url.AuthenticationScheme |
---|
ATTR_PROVIDER, AUTHENTICATION |
Constructor Summary | |
---|---|
ChallengeAuthentication(Node description)
Instantiate this ChallengeAuthentication Scheme from the persisted metadata. |
|
ChallengeAuthentication(java.lang.String realm,
boolean useDigest)
Set the authorization information on this connection. |
Method Summary | |
---|---|
void |
authenticate(HTTPClient.HTTPConnection conn)
Authenticate the HTTPConnection instance using this authentication scheme. |
void |
authenticate(java.lang.String host,
int port)
Enforce challange authentication for a particular host/port |
Node |
describe()
Describe this Authentication scheme. |
java.util.Map |
getCredentials()
Fetch the credentials represented by the scheme. |
java.lang.String |
getRealm()
Gets the realm |
boolean |
isDigest()
|
void |
loadCredentials(java.util.Map environment)
Load the Authentication Scheme with credentials from Credential store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USERNAME
public static final java.lang.String PASSWORD
Constructor Detail |
---|
public ChallengeAuthentication(java.lang.String realm, boolean useDigest)
relam
- The authorization realm .digestAuth
- Indicates the mode of authorization.
if true
indicates that DIGEST
authentication should be done. if false
BASIC authentication is done.public ChallengeAuthentication(Node description) throws ConnectionException
description
- Node
describing this Challange
Authentication scheme.
{@link
- ConnectionException} if there was an error in
reading the description provided to initiaize the
authentication scheme.
ConnectionException
Method Detail |
---|
public void loadCredentials(java.util.Map environment)
Map
represents the environment that has the
security configuration passed by the Connection Manager
which contains the credential properties that this scheme defines.
loadCredentials
in interface AuthenticationScheme
environment
- The environment that has the credential properties
defined by this scheme.public java.util.Map getCredentials()
getCredentials
in interface AuthenticationScheme
Map
representing the connection
credentialspublic java.lang.String getRealm()
public boolean isDigest()
public Node describe()
describe
in interface AuthenticationScheme
Node
describing this authentication scheme.public void authenticate(HTTPClient.HTTPConnection conn) throws ConnectionException
authenticate
in interface AuthenticationScheme
conn
- The HTTPConnection
instance that represents the
interaction for the URLConnection
{@link
- ConnectionException} If the authentication fails.
ConnectionException
public void authenticate(java.lang.String host, int port) throws ConnectionException
authenticate
in interface AuthenticationScheme
host
- The Host for which the authentication is to be doneport
- The related port for which authentication is to be done
{@link
- ConnectionException} if there was failure or error when
authenticating.
ConnectionException
|
Oracle Fusion Middleware Java API Reference for Oracle ADF Model 11g Release 1 (11.1.1.6.0) E10653-07 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |