org.codegist.crest.security
Interface Authorization
- All Known Implementing Classes:
- BasicAuthorization, OAuthorization
public interface Authorization
- Author:
- laurent.gilles@codegist.org
authorize
AuthorizationToken authorize(MethodType methodType,
String url,
EncodedPair... parameters)
throws Exception
- Generates an authorization token for a given request
- Parameters:
methodType - request method typeurl - request urlparameters - request parameter to sign
- Returns:
- the request authorization token
- Throws:
Exception - Any exception thrown during authorization token generation
refresh
void refresh()
throws Exception
- Refreshes internal state when the application has detected authorization credential expiration
- Throws:
Exception - Any exception thrown during credential renewal
Copyright © 2011. All Rights Reserved.