mitreid-connect
公開メンバ関数 | 静的公開変数類 | 非公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.mitre.oauth2.model.AuthenticationHolderEntity クラス
org.mitre.oauth2.model.AuthenticationHolderEntity 連携図
Collaboration graph

公開メンバ関数

 AuthenticationHolderEntity ()
 
Long getId ()
 
void setId (Long id)
 
OAuth2Authentication getAuthentication ()
 
void setAuthentication (OAuth2Authentication authentication)
 
SavedUserAuthentication getUserAuth ()
 
void setUserAuth (SavedUserAuthentication userAuth)
 
Collection< GrantedAuthority > getAuthorities ()
 
void setAuthorities (Collection< GrantedAuthority > authorities)
 
Set< String > getResourceIds ()
 
void setResourceIds (Set< String > resourceIds)
 
boolean isApproved ()
 
void setApproved (boolean approved)
 
String getRedirectUri ()
 
void setRedirectUri (String redirectUri)
 
Set< String > getResponseTypes ()
 
void setResponseTypes (Set< String > responseTypes)
 
Map< String, Serializable > getExtensions ()
 
void setExtensions (Map< String, Serializable > extensions)
 
String getClientId ()
 
void setClientId (String clientId)
 
Set< String > getScope ()
 
void setScope (Set< String > scope)
 
Map< String, String > getRequestParameters ()
 
void setRequestParameters (Map< String, String > requestParameters)
 

静的公開変数類

static final String QUERY_GET_UNUSED = "AuthenticationHolderEntity.getUnusedAuthenticationHolders"
 
static final String QUERY_ALL = "AuthenticationHolderEntity.getAll"
 

非公開メンバ関数

OAuth2Request createOAuth2Request ()
 

非公開変数類

Long id
 
SavedUserAuthentication userAuth
 
Collection< GrantedAuthority > authorities
 
Set< String > resourceIds
 
boolean approved
 
String redirectUri
 
Set< String > responseTypes
 
Map< String, Serializable > extensions
 
String clientId
 
Set< String > scope
 
Map< String, String > requestParameters
 

詳解

構築子と解体子

◆ AuthenticationHolderEntity()

org.mitre.oauth2.model.AuthenticationHolderEntity.AuthenticationHolderEntity ( )
inline
88  {
89 
90  }

関数詳解

◆ createOAuth2Request()

OAuth2Request org.mitre.oauth2.model.AuthenticationHolderEntity.createOAuth2Request ( )
inlineprivate
戻り値
112  {
114  }
Set< String > scope
Definition: AuthenticationHolderEntity.java:84
Map< String, Serializable > extensions
Definition: AuthenticationHolderEntity.java:80
String redirectUri
Definition: AuthenticationHolderEntity.java:76
Collection< GrantedAuthority > authorities
Definition: AuthenticationHolderEntity.java:70
Set< String > resourceIds
Definition: AuthenticationHolderEntity.java:72
String clientId
Definition: AuthenticationHolderEntity.java:82
Set< String > responseTypes
Definition: AuthenticationHolderEntity.java:78
Map< String, String > requestParameters
Definition: AuthenticationHolderEntity.java:86
boolean approved
Definition: AuthenticationHolderEntity.java:74

◆ getAuthentication()

OAuth2Authentication org.mitre.oauth2.model.AuthenticationHolderEntity.getAuthentication ( )
inline
104  {
105  // TODO: memoize this
106  return new OAuth2Authentication(createOAuth2Request(), getUserAuth());
107  }
SavedUserAuthentication getUserAuth()
Definition: AuthenticationHolderEntity.java:142
OAuth2Request createOAuth2Request()
Definition: AuthenticationHolderEntity.java:112

◆ getAuthorities()

Collection<GrantedAuthority> org.mitre.oauth2.model.AuthenticationHolderEntity.getAuthorities ( )
inline
戻り値
the authorities
163  {
164  return authorities;
165  }
Collection< GrantedAuthority > authorities
Definition: AuthenticationHolderEntity.java:70

◆ getClientId()

String org.mitre.oauth2.model.AuthenticationHolderEntity.getClientId ( )
inline
戻り値
the clientId
273  {
274  return clientId;
275  }
String clientId
Definition: AuthenticationHolderEntity.java:82

◆ getExtensions()

Map<String, Serializable> org.mitre.oauth2.model.AuthenticationHolderEntity.getExtensions ( )
inline
戻り値
the extensions
257  {
258  return extensions;
259  }
Map< String, Serializable > extensions
Definition: AuthenticationHolderEntity.java:80

◆ getId()

Long org.mitre.oauth2.model.AuthenticationHolderEntity.getId ( )
inline
95  {
96  return id;
97  }
Long id
Definition: AuthenticationHolderEntity.java:66

◆ getRedirectUri()

String org.mitre.oauth2.model.AuthenticationHolderEntity.getRedirectUri ( )
inline
戻り値
the redirectUri
215  {
216  return redirectUri;
217  }
String redirectUri
Definition: AuthenticationHolderEntity.java:76

◆ getRequestParameters()

Map<String, String> org.mitre.oauth2.model.AuthenticationHolderEntity.getRequestParameters ( )
inline
戻り値
the requestParameters
314  {
315  return requestParameters;
316  }
Map< String, String > requestParameters
Definition: AuthenticationHolderEntity.java:86

◆ getResourceIds()

Set<String> org.mitre.oauth2.model.AuthenticationHolderEntity.getResourceIds ( )
inline
戻り値
the resourceIds
183  {
184  return resourceIds;
185  }
Set< String > resourceIds
Definition: AuthenticationHolderEntity.java:72

◆ getResponseTypes()

Set<String> org.mitre.oauth2.model.AuthenticationHolderEntity.getResponseTypes ( )
inline
戻り値
the responseTypes
235  {
236  return responseTypes;
237  }
Set< String > responseTypes
Definition: AuthenticationHolderEntity.java:78

◆ getScope()

Set<String> org.mitre.oauth2.model.AuthenticationHolderEntity.getScope ( )
inline
戻り値
the scope
293  {
294  return scope;
295  }
Set< String > scope
Definition: AuthenticationHolderEntity.java:84

◆ getUserAuth()

SavedUserAuthentication org.mitre.oauth2.model.AuthenticationHolderEntity.getUserAuth ( )
inline
戻り値
the userAuth
142  {
143  return userAuth;
144  }
SavedUserAuthentication userAuth
Definition: AuthenticationHolderEntity.java:68

◆ isApproved()

boolean org.mitre.oauth2.model.AuthenticationHolderEntity.isApproved ( )
inline
戻り値
the approved
199  {
200  return approved;
201  }
boolean approved
Definition: AuthenticationHolderEntity.java:74

◆ setApproved()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setApproved ( boolean  approved)
inline
引数
approvedthe approved to set
206  {
207  this.approved = approved;
208  }
boolean approved
Definition: AuthenticationHolderEntity.java:74

◆ setAuthentication()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setAuthentication ( OAuth2Authentication  authentication)
inline
116  {
117 
118  // pull apart the request and save its bits
119  OAuth2Request o2Request = authentication.getOAuth2Request();
120  setAuthorities(o2Request.getAuthorities() == null ? null : new HashSet<>(o2Request.getAuthorities()));
121  setClientId(o2Request.getClientId());
122  setExtensions(o2Request.getExtensions() == null ? null : new HashMap<>(o2Request.getExtensions()));
123  setRedirectUri(o2Request.getRedirectUri());
124  setRequestParameters(o2Request.getRequestParameters() == null ? null : new HashMap<>(o2Request.getRequestParameters()));
125  setResourceIds(o2Request.getResourceIds() == null ? null : new HashSet<>(o2Request.getResourceIds()));
126  setResponseTypes(o2Request.getResponseTypes() == null ? null : new HashSet<>(o2Request.getResponseTypes()));
127  setScope(o2Request.getScope() == null ? null : new HashSet<>(o2Request.getScope()));
128  setApproved(o2Request.isApproved());
129 
130  if (authentication.getUserAuthentication() != null) {
131  this.userAuth = new SavedUserAuthentication(authentication.getUserAuthentication());
132  } else {
133  this.userAuth = null;
134  }
135  }
void setResponseTypes(Set< String > responseTypes)
Definition: AuthenticationHolderEntity.java:242
void setRequestParameters(Map< String, String > requestParameters)
Definition: AuthenticationHolderEntity.java:321
void setExtensions(Map< String, Serializable > extensions)
Definition: AuthenticationHolderEntity.java:264
void setAuthorities(Collection< GrantedAuthority > authorities)
Definition: AuthenticationHolderEntity.java:170
void setRedirectUri(String redirectUri)
Definition: AuthenticationHolderEntity.java:222
SavedUserAuthentication userAuth
Definition: AuthenticationHolderEntity.java:68
void setResourceIds(Set< String > resourceIds)
Definition: AuthenticationHolderEntity.java:190
void setClientId(String clientId)
Definition: AuthenticationHolderEntity.java:280
void setApproved(boolean approved)
Definition: AuthenticationHolderEntity.java:206
void setScope(Set< String > scope)
Definition: AuthenticationHolderEntity.java:300

◆ setAuthorities()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setAuthorities ( Collection< GrantedAuthority >  authorities)
inline
引数
authoritiesthe authorities to set
170  {
171  this.authorities = authorities;
172  }
Collection< GrantedAuthority > authorities
Definition: AuthenticationHolderEntity.java:70

◆ setClientId()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setClientId ( String  clientId)
inline
引数
clientIdthe clientId to set
280  {
281  this.clientId = clientId;
282  }
String clientId
Definition: AuthenticationHolderEntity.java:82

◆ setExtensions()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setExtensions ( Map< String, Serializable >  extensions)
inline
引数
extensionsthe extensions to set
264  {
265  this.extensions = extensions;
266  }
Map< String, Serializable > extensions
Definition: AuthenticationHolderEntity.java:80

◆ setId()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setId ( Long  id)
inline
99  {
100  this.id = id;
101  }
Long id
Definition: AuthenticationHolderEntity.java:66

◆ setRedirectUri()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setRedirectUri ( String  redirectUri)
inline
引数
redirectUrithe redirectUri to set
222  {
223  this.redirectUri = redirectUri;
224  }
String redirectUri
Definition: AuthenticationHolderEntity.java:76

◆ setRequestParameters()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setRequestParameters ( Map< String, String >  requestParameters)
inline
引数
requestParametersthe requestParameters to set
321  {
323  }
Map< String, String > requestParameters
Definition: AuthenticationHolderEntity.java:86

◆ setResourceIds()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setResourceIds ( Set< String >  resourceIds)
inline
引数
resourceIdsthe resourceIds to set
190  {
191  this.resourceIds = resourceIds;
192  }
Set< String > resourceIds
Definition: AuthenticationHolderEntity.java:72

◆ setResponseTypes()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setResponseTypes ( Set< String >  responseTypes)
inline
引数
responseTypesthe responseTypes to set
242  {
244  }
Set< String > responseTypes
Definition: AuthenticationHolderEntity.java:78

◆ setScope()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setScope ( Set< String >  scope)
inline
引数
scopethe scope to set
300  {
301  this.scope = scope;
302  }
Set< String > scope
Definition: AuthenticationHolderEntity.java:84

◆ setUserAuth()

void org.mitre.oauth2.model.AuthenticationHolderEntity.setUserAuth ( SavedUserAuthentication  userAuth)
inline
引数
userAuththe userAuth to set
149  {
150  this.userAuth = userAuth;
151  }
SavedUserAuthentication userAuth
Definition: AuthenticationHolderEntity.java:68

メンバ詳解

◆ approved

boolean org.mitre.oauth2.model.AuthenticationHolderEntity.approved
private

◆ authorities

Collection<GrantedAuthority> org.mitre.oauth2.model.AuthenticationHolderEntity.authorities
private

◆ clientId

String org.mitre.oauth2.model.AuthenticationHolderEntity.clientId
private

◆ extensions

Map<String, Serializable> org.mitre.oauth2.model.AuthenticationHolderEntity.extensions
private

◆ id

Long org.mitre.oauth2.model.AuthenticationHolderEntity.id
private

◆ QUERY_ALL

final String org.mitre.oauth2.model.AuthenticationHolderEntity.QUERY_ALL = "AuthenticationHolderEntity.getAll"
static

◆ QUERY_GET_UNUSED

final String org.mitre.oauth2.model.AuthenticationHolderEntity.QUERY_GET_UNUSED = "AuthenticationHolderEntity.getUnusedAuthenticationHolders"
static

◆ redirectUri

String org.mitre.oauth2.model.AuthenticationHolderEntity.redirectUri
private

◆ requestParameters

Map<String, String> org.mitre.oauth2.model.AuthenticationHolderEntity.requestParameters
private

◆ resourceIds

Set<String> org.mitre.oauth2.model.AuthenticationHolderEntity.resourceIds
private

◆ responseTypes

Set<String> org.mitre.oauth2.model.AuthenticationHolderEntity.responseTypes
private

◆ scope

Set<String> org.mitre.oauth2.model.AuthenticationHolderEntity.scope
private

◆ userAuth

SavedUserAuthentication org.mitre.oauth2.model.AuthenticationHolderEntity.userAuth
private

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