Class IdcsRoleMapperProviderBase.AppToken
- java.lang.Object
-
- io.helidon.security.providers.idcs.mapper.IdcsRoleMapperProviderBase.AppToken
-
- Enclosing class:
- IdcsRoleMapperProviderBase
protected static class IdcsRoleMapperProviderBase.AppToken extends Object
A token for app access to IDCS.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Optional<String>
getToken(RoleMapTracing tracing)
Get the token to use for requests to IDCS.
-
-
-
Constructor Detail
-
AppToken
protected AppToken(WebTarget tokenEndpoint)
Create a new token with a token endpoint.- Parameters:
tokenEndpoint
- used to get a new token from IDCS
-
-
Method Detail
-
getToken
protected Optional<String> getToken(RoleMapTracing tracing)
Get the token to use for requests to IDCS.- Parameters:
tracing
- tracing to use when requesting a new token from server- Returns:
- token content or empty if it could not be obtained
-
-