| java.lang.Object org.apache.commons.httpclient.contrib.auth.NegotiateScheme
Field Summary | |
byte[] | token |
Constructor Summary | |
public | NegotiateScheme() Default constructor for the Negotiate authentication scheme. | public | NegotiateScheme(String challenge) Constructor for the Negotiate authentication scheme. |
Method Summary | |
public String | authenticate(Credentials credentials, String method, String uri) Method not supported by Negotiate scheme. | public String | authenticate(Credentials credentials, HttpMethod method) Produces Negotiate authorization string based on token created by
processChallenge.
Parameters: credentials - Never used be the Negotiate scheme but must be provided to satisfy common-httpclient API. | public String | getID() Returns a String identifying the authentication challenge. | public String | getParameter(String name) Returns the authentication parameter with the given name, if available. | public String | getRealm() The concept of an authentication realm is not supported by the Negotiate
authentication scheme. | public String | getSchemeName() Returns textual designation of the Negotiate authentication scheme. | protected void | init(String server) Init GSSContext for negotiation. | public boolean | isComplete() Tests if the Negotiate authentication process has been completed. | public boolean | isConnectionBased() Returns true. | public void | processChallenge(String challenge) Processes the Negotiate challenge. |
token | byte[] token(Code) | | base64 decoded challenge *
|
NegotiateScheme | public NegotiateScheme()(Code) | | Default constructor for the Negotiate authentication scheme.
since: 3.0 |
NegotiateScheme | public NegotiateScheme(String challenge)(Code) | | Constructor for the Negotiate authentication scheme.
Parameters: challenge - The authentication challenge |
authenticate | public String authenticate(Credentials credentials, HttpMethod method) throws AuthenticationException(Code) | | Produces Negotiate authorization string based on token created by
processChallenge.
Parameters: credentials - Never used be the Negotiate scheme but must be provided to satisfy common-httpclient API. Credentials from JAAS will be used insted. Parameters: method - The method being authenticated throws: AuthenticationException - if authorization string cannot be generated due to an authentication failure an Negotiate authorization string since: 3.0 |
getID | public String getID()(Code) | | Returns a String identifying the authentication challenge. This is
used, in combination with the host and port to determine if
authorization has already been attempted or not. Schemes which
require multiple requests to complete the authentication should
return a different value for each stage in the request.
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.
String a String identifying the authentication challenge. Thereturned value may be null. |
getParameter | public String getParameter(String name)(Code) | | Returns the authentication parameter with the given name, if available.
There are no valid parameters for Negotiate authentication so this
method always returns null.
Parameters: name - The name of the parameter to be returned the parameter with the given name |
getRealm | public String getRealm()(Code) | | The concept of an authentication realm is not supported by the Negotiate
authentication scheme. Always returns null .
null |
getSchemeName | public String getSchemeName()(Code) | | Returns textual designation of the Negotiate authentication scheme.
Negotiate |
init | protected void init(String server) throws GSSException(Code) | | Init GSSContext for negotiation.
Parameters: server - servername only (e.g: radar.it.su.se) |
isComplete | public boolean isComplete()(Code) | | Tests if the Negotiate authentication process has been completed.
true if authorization has been processed,false otherwise. since: 3.0 |
isConnectionBased | public boolean isConnectionBased()(Code) | | Returns true.
Negotiate authentication scheme is connection based.
true. since: 3.0 |
processChallenge | public void processChallenge(String challenge)(Code) | | Processes the Negotiate challenge.
Parameters: challenge - the challenge string since: 3.0 |
|
|