@Service public class DefaultIntrospectionResultAssembler extends Object implements IntrospectionResultAssembler
IntrospectionResultAssembler
interface.ACTIVE, CLIENT_ID, dateFormat, EXP, EXPIRES_AT, SCOPE, SCOPE_SEPARATOR, SUB, TOKEN_TYPE, USER_ID
Constructor and Description |
---|
DefaultIntrospectionResultAssembler() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
assembleFrom(OAuth2AccessTokenEntity accessToken,
UserInfo userInfo,
Set<String> authScopes)
Assemble a token introspection result from the given access token and user info.
|
Map<String,Object> |
assembleFrom(OAuth2RefreshTokenEntity refreshToken,
UserInfo userInfo,
Set<String> authScopes)
Assemble a token introspection result from the given refresh token and user info.
|
public DefaultIntrospectionResultAssembler()
public Map<String,Object> assembleFrom(OAuth2AccessTokenEntity accessToken, UserInfo userInfo, Set<String> authScopes)
IntrospectionResultAssembler
assembleFrom
in interface IntrospectionResultAssembler
accessToken
- the access tokenuserInfo
- the user infoauthScopes
- the scopes the client is authorized forpublic Map<String,Object> assembleFrom(OAuth2RefreshTokenEntity refreshToken, UserInfo userInfo, Set<String> authScopes)
IntrospectionResultAssembler
assembleFrom
in interface IntrospectionResultAssembler
refreshToken
- the refresh tokenuserInfo
- the user infoauthScopes
- the scopes the client is authorized forCopyright © 2018. All rights reserved.