public class EnteredCredentialsProvider extends Object implements CredentialsProvider
CredentialsProvider that is expected to get
user name and password when instantiating instance and then return
Basic type of authorization header.BASIC_AUTH_PREFIX, TOKEN_AUTH_PREFIX| Constructor and Description |
|---|
EnteredCredentialsProvider(String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthorization()
Returns authorization string that shall be used for setting up
"Authorization" header for HTTP communication.
|
String |
getHeaderName()
Returns name of the HTTP header to be set with given authorization
|
String |
getPassword() |
String |
getUsername() |
void |
setPassword(String password) |
void |
setUsername(String username) |
public String getHeaderName()
CredentialsProvidergetHeaderName in interface CredentialsProviderpublic String getAuthorization()
CredentialsProvidergetAuthorization in interface CredentialsProviderpublic String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.