public class BasicAuthExtractor extends Object implements CredentialsExtractor<UsernamePasswordCredentials>
Constructor and Description |
---|
BasicAuthExtractor(String clientName) |
BasicAuthExtractor(String headerName,
String prefixHeader,
String clientName) |
Modifier and Type | Method and Description |
---|---|
UsernamePasswordCredentials |
extract(WebContext context)
Extract the right credentials.
|
public BasicAuthExtractor(String clientName)
public UsernamePasswordCredentials extract(WebContext context) throws HttpAction, CredentialsException
CredentialsExtractor
CredentialsException
in case of failure.extract
in interface CredentialsExtractor<UsernamePasswordCredentials>
context
- the current web contextHttpAction
- requires a specific HTTP action if necessaryCredentialsException
- the credentials are invalidCopyright © 2017. All rights reserved.