Class KeycloakTokenProducer
java.lang.Object
org.activiti.cloud.services.test.identity.keycloak.KeycloakTokenProducer
- All Implemented Interfaces:
IdentityTokenProducer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringstatic final Stringstatic final StringFields inherited from interface org.activiti.cloud.services.test.identity.IdentityTokenProducer
AUTHORIZATION_HEADER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.HttpHeadersorg.springframework.http.HttpEntityorg.springframework.http.HttpEntityentityWithAuthorizationHeader(String user, String password) org.springframework.http.HttpEntitywithResource(String resource) withTestPassword(String testPassword) withTestUser(String keycloakTestUser)
-
Field Details
-
TOKEN_ENDPOINT
- See Also:
-
TOKEN_FIELD
- See Also:
-
resource
-
testUser
-
testPassword
-
-
Constructor Details
-
KeycloakTokenProducer
-
-
Method Details
-
getTokenString
- Specified by:
getTokenStringin interfaceIdentityTokenProducer
-
getAccessTokenString
- Specified by:
getAccessTokenStringin interfaceIdentityTokenProducer
-
withTestUser
- Specified by:
withTestUserin interfaceIdentityTokenProducer
-
withTestPassword
- Specified by:
withTestPasswordin interfaceIdentityTokenProducer
-
withResource
- Specified by:
withResourcein interfaceIdentityTokenProducer
-
entityWithAuthorizationHeader
public org.springframework.http.HttpEntity entityWithAuthorizationHeader(String user, String password) - Specified by:
entityWithAuthorizationHeaderin interfaceIdentityTokenProducer
-
entityWithoutAuthentication
public org.springframework.http.HttpEntity entityWithoutAuthentication()- Specified by:
entityWithoutAuthenticationin interfaceIdentityTokenProducer
-
entityWithAuthorizationHeader
public org.springframework.http.HttpEntity entityWithAuthorizationHeader()- Specified by:
entityWithAuthorizationHeaderin interfaceIdentityTokenProducer
-
getTestUser
- Specified by:
getTestUserin interfaceIdentityTokenProducer
-
authorizationHeaders
public org.springframework.http.HttpHeaders authorizationHeaders()- Specified by:
authorizationHeadersin interfaceIdentityTokenProducer
-