Class AccessTokenToDecodedTokenUserMapper
java.lang.Object
org.alfresco.repo.security.authentication.identityservice.user.AccessTokenToDecodedTokenUserMapper
-
Constructor Summary
ConstructorsConstructorDescriptionAccessTokenToDecodedTokenUserMapper(UserInfoAttrMapping userInfoAttrMapping) -
Method Summary
Modifier and TypeMethodDescriptionMaps the givenIdentityServiceFacade.DecodedAccessTokento aDecodedTokenUser.
-
Constructor Details
-
AccessTokenToDecodedTokenUserMapper
-
-
Method Details
-
toDecodedTokenUser
public Optional<DecodedTokenUser> toDecodedTokenUser(IdentityServiceFacade.DecodedAccessToken token) Maps the givenIdentityServiceFacade.DecodedAccessTokento aDecodedTokenUser.- Parameters:
token- the token to map- Returns:
- the mapped
DecodedTokenUserorOptional.empty()if the token does not contain a username claim
-