public class HeaderExtractor extends Object implements CredentialsExtractor<TokenCredentials>
Constructor and Description |
---|
HeaderExtractor(String headerName,
String prefixHeader,
String clientName) |
Modifier and Type | Method and Description |
---|---|
TokenCredentials |
extract(WebContext context)
Extract the right credentials.
|
public TokenCredentials extract(WebContext context) throws HttpAction, CredentialsException
CredentialsExtractor
CredentialsException
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.