|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.webscripts.connector.AbstractAuthenticator
public abstract class AbstractAuthenticator
Abstract implementation of an Authenticator which can be used quite readily as a base class for your own custom implementations. This abstract implementation provides helper methods for post-processing response elements such as headers. The sole authenticate method remains unimplemented.
Constructor Summary | |
---|---|
AbstractAuthenticator()
|
Method Summary | |
---|---|
abstract ConnectorSession |
authenticate(String endpoint,
Credentials credentials,
ConnectorSession connectorSession)
Authenticate against the given Endpoint URL with the supplied Credentials |
abstract boolean |
isAuthenticated(String endpoint,
ConnectorSession connectorSession)
Returns whether the current connector session has been authenticated or not |
protected void |
processResponse(Response response,
ConnectorSession connectorSession)
Retrieves headers from response and stores onto the Connector Session |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAuthenticator()
Method Detail |
---|
public abstract ConnectorSession authenticate(String endpoint, Credentials credentials, ConnectorSession connectorSession) throws AuthenticationException
Authenticator
authenticate
in interface Authenticator
AuthenticationException
- on errorpublic abstract boolean isAuthenticated(String endpoint, ConnectorSession connectorSession)
Authenticator
isAuthenticated
in interface Authenticator
protected void processResponse(Response response, ConnectorSession connectorSession)
response
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |