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