public class ParameterExtractor extends Object implements CredentialsExtractor<TokenCredentials>
| Constructor and Description |
|---|
ParameterExtractor(String parameterName,
boolean supportGetRequest,
boolean supportPostRequest,
String clientName) |
ParameterExtractor(String parameterName,
String clientName) |
| Modifier and Type | Method and Description |
|---|---|
TokenCredentials |
extract(WebContext context)
Extract the right credentials.
|
String |
toString() |
public TokenCredentials extract(WebContext context) throws HttpAction, CredentialsException
CredentialsExtractorCredentialsException in case of failure.extract in interface CredentialsExtractor<TokenCredentials>context - the current web contextHttpAction - requires a specific HTTP action if necessaryCredentialsException - the credentials are invalidCopyright © 2017. All Rights Reserved.