public class EnteredTokenCredentialsProvider extends Object implements CredentialsProvider
CredentialsProvider
that is expected to get
valid token when instantiating instance and then return
Bearer type of authorization header.BASIC_AUTH_PREFIX, TOKEN_AUTH_PREFIX
Constructor and Description |
---|
EnteredTokenCredentialsProvider(String token) |
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
|
public EnteredTokenCredentialsProvider(String token)
public String getHeaderName()
CredentialsProvider
getHeaderName
in interface CredentialsProvider
public String getAuthorization()
CredentialsProvider
getAuthorization
in interface CredentialsProvider
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.