public interface AuthzModule
| Modifier and Type | Method and Description |
|---|---|
AuthorizationFields |
getAuthorizationFields(URI requestUri,
String method,
byte[] requestBody)
This method is called be
Pipe implementations when they need
security applied to their HttpProvider. |
boolean |
hasCredentials()
This function checks if a module has all of the necessary information to
make a authorized request.
|
boolean |
isAuthorized()
If a module is Authorized that means that it can be used to provide
authorization meta-data to calling code.
|
boolean |
refreshAccess()
Refreshing access will synchronously check the current of the tokens and
refresh them if necessary.
|
void |
requestAccess(android.app.Activity activity,
Callback<String> callback)
Begin requesting access for the application.
|
boolean isAuthorized()
boolean hasCredentials()
isAuthorized()void requestAccess(android.app.Activity activity,
Callback<String> callback)
activity - the calling activity.callback - a callback to be called upon completion of the
authorization action.boolean refreshAccess()
AuthorizationFields getAuthorizationFields(URI requestUri, String method, byte[] requestBody)
Pipe implementations when they need
security applied to their HttpProvider. The headers/data/query
parameters returned should be applied to the Url and HttpProvider
directly before a call.requestUri - the Request-Line URI.method - the HTTP method being usedrequestBody - the body of the request. This method promises to not
modify the body.Copyright © 2014 JBoss by Red Hat. All rights reserved.