public interface UserCredentialResolver
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
mapToGroups(java.lang.String tokenString)
This method is for mapping the authentication token with the list of groups.
|
java.lang.String |
mapToRealm(java.lang.String tokenString)
This method is for mapping the authentication token with the Realm.
|
java.lang.String |
mapToUser(java.lang.String tokenString)
This method is for mapping the authentication token with the user name.
|
java.lang.String |
mapToUserUniqueID(java.lang.String tokenString)
This method is for mapping the authentication token with the user unique ID.
|
java.lang.String mapToUser(java.lang.String tokenString) throws UserIdentityException
tokenString
- -- the oAuth authentication token string in the JSON format. Example:
{"exp":1460058764,"sub":"testuser","realmName":"BasicRealm","scope":"openid scope2 scope1","grant_type":"refresh_token","iss":"http:\/\/localhost:8940\/oidc\/endpoint\/tokenissuer","uniqueSecurityName":"testuser","active":true,"token_type":"Bearer","client_id":"client01","iat":1460058759}UserIdentityException
- - authentication process will failjava.util.List<java.lang.String> mapToGroups(java.lang.String tokenString) throws UserIdentityException
tokenString
- -- the oAuth authentication token string in the JSON format. Example:
{"sub":"testuser","iss":"http:\/\/localhost:8940\/oidc\/endpoint\/tokenissuer","groupIds":[ "testuserdepartment","administrators" ]}UserIdentityException
- -- authentication process will fail.java.lang.String mapToUserUniqueID(java.lang.String tokenString) throws UserIdentityException
tokenString
- -- the oAuth authentication token string in the JSON format. Example:
{"exp":1460058764,"sub":"testuser","realmName":"BasicRealm","scope":"openid scope2 scope1","grant_type":"refresh_token","iss":"http:\/\/localhost:8940\/oidc\/endpoint\/tokenissuer","uniqueSecurityName":"testuser","active":true,"token_type":"Bearer","client_id":"client01","iat":1460058759}UserIdentityException
- -- authentication process will fail.java.lang.String mapToRealm(java.lang.String tokenString) throws UserIdentityException
tokenString
- -- the oAuth authentication token string in the JSON format. Example:
{"exp":1460058764,"sub":"testuser","realmName":"BasicRealm","scope":"openid scope2 scope1","grant_type":"refresh_token","iss":"http:\/\/localhost:8940\/oidc\/endpoint\/tokenissuer","uniqueSecurityName":"testuser","active":true,"token_type":"Bearer","client_id":"client01","iat":1460058759}UserIdentityException
- -- authentication process will fail.