Class ResourceOwnerTokenIntrospector

java.lang.Object
org.iplass.mtp.auth.oauth.introspectors.ResourceOwnerTokenIntrospector
All Implemented Interfaces:
CustomTokenIntrospector

public class ResourceOwnerTokenIntrospector
extends java.lang.Object
implements CustomTokenIntrospector
Tokenを所有するUserの情報を返却するCustomTokenIntrospectorです。 レスポンスに"resource_owner"をキー名にUserエンティティを返却します。 また、"tenant_id"でテナントID、"tenant_name"でテナント名を返却します。
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String RESOURCE_OWNER_NAME  
    static java.lang.String TENANT_ID  
    static java.lang.String TENANT_NAME  
  • Constructor Summary

    Constructors 
    Constructor Description
    ResourceOwnerTokenIntrospector()  
  • Method Summary

    Modifier and Type Method Description
    boolean handle​(java.util.Map<java.lang.String,​java.lang.Object> response, RequestContext request, User resourceOwner)
    introspectionリクエストのレスポンスをカスタマイズするよう実装します。

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait