|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectau.net.ocean.httpclient.auth.spnego.SPNegoAuthScheme
public class SPNegoAuthScheme
Created by dwhitla at Apr 15, 2007 4:20:35 PM
| Field Summary | |
|---|---|
static java.lang.String |
IDENTIFIER
|
| Constructor Summary | |
|---|---|
SPNegoAuthScheme()
|
|
| Method Summary | |
|---|---|
java.lang.String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
org.apache.commons.httpclient.HttpMethod method)
Produces an authorization string for the given set of Credentials. |
java.lang.String |
authenticate(org.apache.commons.httpclient.Credentials credentials,
java.lang.String method,
java.lang.String uri)
Deprecated. Use authenticate(org.apache.commons.httpclient.Credentials,org.apache.commons.httpclient.HttpMethod)
Produces an authorization string for the given set of Credentials,
method name and URI using the given authentication scheme in response to
the actual authorization challenge. |
java.lang.String |
getID()
Deprecated. no longer used |
java.lang.String |
getParameter(java.lang.String name)
Returns authentication parameter with the given name, if available. |
java.lang.String |
getRealm()
Returns authentication realm. |
java.lang.String |
getSchemeName()
|
boolean |
isComplete()
Authentication process may involve a series of challenge-response exchanges. |
boolean |
isConnectionBased()
Tests if the authentication scheme provides authorization on a per connection basis instead of usual per request basis |
void |
processChallenge(java.lang.String challenge)
Processes the given challenge token. |
| 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 IDENTIFIER
| Constructor Detail |
|---|
public SPNegoAuthScheme()
| Method Detail |
|---|
public void processChallenge(java.lang.String challenge)
throws org.apache.commons.httpclient.auth.MalformedChallengeException
processChallenge in interface org.apache.commons.httpclient.auth.AuthSchemechallenge - the challenge string
org.apache.commons.httpclient.auth.MalformedChallengeExceptionpublic java.lang.String getSchemeName()
getSchemeName in interface org.apache.commons.httpclient.auth.AuthSchemepublic java.lang.String getParameter(java.lang.String name)
getParameter in interface org.apache.commons.httpclient.auth.AuthSchemename - The name of the parameter to be returned
public java.lang.String getRealm()
null.
getRealm in interface org.apache.commons.httpclient.auth.AuthSchemepublic boolean isConnectionBased()
isConnectionBased in interface org.apache.commons.httpclient.auth.AuthSchemepublic boolean isComplete()
isComplete in interface org.apache.commons.httpclient.auth.AuthScheme
public java.lang.String authenticate(org.apache.commons.httpclient.Credentials credentials,
org.apache.commons.httpclient.HttpMethod method)
throws org.apache.commons.httpclient.auth.AuthenticationException
Credentials.
authenticate in interface org.apache.commons.httpclient.auth.AuthSchemecredentials - The set of credentials to be used for athenticationmethod - The method being authenticated
org.apache.commons.httpclient.auth.AuthenticationException - if authorization string cannot
be generated due to an authentication failurepublic java.lang.String getID()
Additionally, the ID should take into account any changes to the authentication challenge and return a different value when appropriate. For example when the realm changes in basic authentication it should be considered a different authentication attempt and a different value should be returned.
getID in interface org.apache.commons.httpclient.auth.AuthScheme
public java.lang.String authenticate(org.apache.commons.httpclient.Credentials credentials,
java.lang.String method,
java.lang.String uri)
throws org.apache.commons.httpclient.auth.AuthenticationException
authenticate(org.apache.commons.httpclient.Credentials,org.apache.commons.httpclient.HttpMethod)
Produces an authorization string for the given set of Credentials,
method name and URI using the given authentication scheme in response to
the actual authorization challenge.
authenticate in interface org.apache.commons.httpclient.auth.AuthSchemecredentials - The set of credentials to be used for athenticationmethod - The name of the method that requires authorization.
This parameter may be ignored, if it is irrelevant
or not applicable to the given authentication schemeuri - The URI for which authorization is needed.
This parameter may be ignored, if it is irrelevant or not
applicable to the given authentication scheme
org.apache.commons.httpclient.auth.AuthenticationException - if authorization string cannot
be generated due to an authentication failureHttpMethod.getName(),
HttpMethod.getPath()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||