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()
CredentialsProvider
getHeaderName
in interface CredentialsProvider
public String getAuthorization()
CredentialsProvider
getAuthorization
in interface CredentialsProvider
public 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.