Class SubjectCredentialsProvider
- java.lang.Object
-
- org.kie.server.client.credentials.SubjectCredentialsProvider
-
- All Implemented Interfaces:
CredentialsProvider
public class SubjectCredentialsProvider extends Object implements CredentialsProvider
-
-
Field Summary
-
Fields inherited from interface org.kie.server.client.CredentialsProvider
BASIC_AUTH_PREFIX, TOKEN_AUTH_PREFIX
-
-
Constructor Summary
Constructors Constructor Description SubjectCredentialsProvider()
-
Method Summary
All Methods Instance Methods Concrete 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
-
-
-
Method Detail
-
getHeaderName
public String getHeaderName()
Description copied from interface:CredentialsProvider
Returns name of the HTTP header to be set with given authorization- Specified by:
getHeaderName
in interfaceCredentialsProvider
- Returns:
-
getAuthorization
public String getAuthorization()
Description copied from interface:CredentialsProvider
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.- Specified by:
getAuthorization
in interfaceCredentialsProvider
- Returns:
-
-