|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface represents an abstract authentication scheme.
An authentication scheme should be able to support the following functions:
Authentication schemes may ignore method name and URI parameters if they are not relevant for the given authentication mechanism
Method Summary | |
java.lang.String |
authenticate(Credentials credentials,
java.lang.String method,
java.lang.String uri)
Produces an authorization string for the given set of Credentials ,
method name and URI using the given authentication scheme. |
java.lang.String |
getID()
Returns a String identifying the authentication challenge. |
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()
Returns textual designation of the given authentication scheme. |
Method Detail |
public java.lang.String getSchemeName()
public java.lang.String getParameter(java.lang.String name)
name
- The name of the parameter to be returnedpublic java.lang.String getRealm()
null
.public 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.
public java.lang.String authenticate(Credentials credentials, java.lang.String method, java.lang.String uri) throws AuthenticationException
Credentials
,
method name and URI using the given authentication scheme.credentials
- 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 schemeHttpMethod.getName()
,
HttpMethod.getPath()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |