mitreid-connect
公開メンバ関数 | 非公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.mitre.oauth2.token.ScopeServiceAwareOAuth2RequestValidator クラス
org.mitre.oauth2.token.ScopeServiceAwareOAuth2RequestValidator の継承関係図
Inheritance graph
org.mitre.oauth2.token.ScopeServiceAwareOAuth2RequestValidator 連携図
Collaboration graph

公開メンバ関数

void validateScope (AuthorizationRequest authorizationRequest, ClientDetails client) throws InvalidScopeException
 
void validateScope (TokenRequest tokenRequest, ClientDetails client) throws InvalidScopeException
 

非公開メンバ関数

void validateScope (Set< String > requestedScopes, Set< String > clientScopes) throws InvalidScopeException
 

非公開変数類

SystemScopeService scopeService
 

詳解

Validates the scopes on a request by comparing them against a client's allowed scopes, but allow custom scopes to function through the system scopes

著者
jricher

関数詳解

◆ validateScope() [1/3]

void org.mitre.oauth2.token.ScopeServiceAwareOAuth2RequestValidator.validateScope ( Set< String >  requestedScopes,
Set< String >  clientScopes 
) throws InvalidScopeException
inlineprivate
49  {
50  if (requestedScopes != null && !requestedScopes.isEmpty()) {
51  if (clientScopes != null && !clientScopes.isEmpty()) {
52  if (!scopeService.scopesMatch(clientScopes, requestedScopes)) {
53  throw new InvalidScopeException("Invalid scope; requested:" + requestedScopes, clientScopes);
54  }
55  }
56  }
57  }
boolean scopesMatch(Set< String > expected, Set< String > actual)
SystemScopeService scopeService
Definition: ScopeServiceAwareOAuth2RequestValidator.java:44

◆ validateScope() [2/3]

void org.mitre.oauth2.token.ScopeServiceAwareOAuth2RequestValidator.validateScope ( AuthorizationRequest  authorizationRequest,
ClientDetails  client 
) throws InvalidScopeException
inline
60  {
61  validateScope(authorizationRequest.getScope(), client.getScope());
62  }
void validateScope(Set< String > requestedScopes, Set< String > clientScopes)
Definition: ScopeServiceAwareOAuth2RequestValidator.java:49

◆ validateScope() [3/3]

void org.mitre.oauth2.token.ScopeServiceAwareOAuth2RequestValidator.validateScope ( TokenRequest  tokenRequest,
ClientDetails  client 
) throws InvalidScopeException
inline
65  {
66  validateScope(tokenRequest.getScope(), client.getScope());
67  }
void validateScope(Set< String > requestedScopes, Set< String > clientScopes)
Definition: ScopeServiceAwareOAuth2RequestValidator.java:49

メンバ詳解

◆ scopeService

SystemScopeService org.mitre.oauth2.token.ScopeServiceAwareOAuth2RequestValidator.scopeService
private

このクラス詳解は次のファイルから抽出されました: