public class SecurityContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
admin |
protected String |
authenticationToken |
protected AuthorizationService |
authorizationService |
protected String |
doAsUserId |
protected ServiceFactory |
serviceFactory |
protected String |
userId |
| Constructor and Description |
|---|
SecurityContext(ServiceFactory serviceFactory,
String authenticationToken) |
SecurityContext(ServiceFactory serviceFactory,
String authenticationToken,
String doAsUserId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthenticationToken() |
protected AuthorizationService |
getAuthorizationService() |
String |
getUserId() |
boolean |
isAdmin() |
protected ServiceFactory serviceFactory
protected String authenticationToken
protected String doAsUserId
protected transient AuthorizationService authorizationService
protected transient Boolean admin
protected transient String userId
public SecurityContext(ServiceFactory serviceFactory, String authenticationToken)
public SecurityContext(ServiceFactory serviceFactory, String authenticationToken, String doAsUserId)
protected AuthorizationService getAuthorizationService()
public boolean isAdmin()
public String getUserId()
public String getAuthenticationToken()
Copyright © 2013–2015 Inra. All rights reserved.