Package org.kie.server.client
Interface CredentialsProvider
-
- All Known Implementing Classes:
EnteredCredentialsProvider
,EnteredTokenCredentialsProvider
,SubjectCredentialsProvider
public interface CredentialsProvider
Responsible for providing user credentials that can be obtained in various ways that depends on the implementation.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASIC_AUTH_PREFIX
static String
TOKEN_AUTH_PREFIX
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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
-
-
-
Field Detail
-
BASIC_AUTH_PREFIX
static final String BASIC_AUTH_PREFIX
- See Also:
- Constant Field Values
-
TOKEN_AUTH_PREFIX
static final String TOKEN_AUTH_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHeaderName
String getHeaderName()
Returns name of the HTTP header to be set with given authorization- Returns:
-
getAuthorization
String getAuthorization()
Returns authorization string that shall be used for setting up "Authorization" header for HTTP communication. It's expected to be completely setup including prefix (such as Basic) and encryption (such as Base64 in case of basic) if needed.- Returns:
-
-