Package ca.cdr.api.model.json
Class UserSessionDetailsJson
java.lang.Object
ca.cdr.api.model.json.UserDetailsJson
ca.cdr.api.model.json.UserSessionDetailsJson
- All Implemented Interfaces:
IHasAuthorities
,IHasUserData
,IModelJson
,IOAuth2Session
,IModelJson
,Serializable
,Cloneable
,org.springframework.security.core.AuthenticatedPrincipal
,org.springframework.security.core.userdetails.UserDetails
public class UserSessionDetailsJson
extends UserDetailsJson
implements IOAuth2Session, IModelJson, org.springframework.security.core.AuthenticatedPrincipal, IHasUserData
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ca.cdr.api.model.json.UserDetailsJson
UserDetailsJson.AssociatedResourceJson, UserDetailsJson.AssociatedResourceTypeEnum
-
Field Summary
Fields inherited from interface ca.uhn.fhir.model.api.IModelJson
SENSITIVE_DATA_FILTER_NAME
-
Constructor Summary
ConstructorDescriptionConstructorUserSessionDetailsJson
(UserDetailsJson theCopyObject) Copy Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
addApprovedScope
(String theScope) void
addApprovedScopes
(Set<String> theScope) void
addClaimsAsUserData
(Map<String, Object> theClaims) Adds all claims in the provided map as user datavoid
addFhirContextReference
(String theReference) void
addFhirContextReference
(String theReference, String theRole) void
addLaunchContextParameter
(String theParameterName, String theParameterValue) void
addLaunchResourceId
(String theResourceType, String theResourceId) void
addUserData
(String theKey, String theValue) If the session is an OAuth2 session (i.e.getClientPopulatedUserData
(boolean theCreateIfNull) Model objects wishing to implement user data can implement this interface, and only need to actually implement this methodgetLaunchContextParameterValueForParameterName
(String theParameterName) getLaunchResourceIdForResourceType
(String theResourceType) getLaunchResourceIdsForResourceType
(String theResourceType) getName()
boolean
Does this session have any approved scopesvoid
removeApprovedScope
(String theScope) void
setApprovedScopes
(Set<String> theApprovedScopes) void
setFhirUserUrl
(String theFhirUserUrl) void
setOidcClientId
(String theClientId) void
setOidcClientModuleId
(String theModuleId) void
setOidcClientNodeId
(String theOidcNodeId) This method caches its output!!toString()
Methods inherited from class ca.cdr.api.model.json.UserDetailsJson
addAssociatedResource, addAssociatedResource, addAuthorities, addAuthority, addAuthority, addDefaultLaunchContext, clone, getAccountExpiry, getAccountExpiryDateAsIsoString, getAssociatedResources, getAuthorities, getAuthorityNames, getCredentialExpiry, getCredentialExpiryDateAsIsoString, getDefaultLaunchContexts, getDefaultLaunchContextsCommaSeparated, getEmail, getFailedLoginAttempts, getFamilyName, getFullName, getGivenName, getLastActive, getLastConnected, getModuleId, getNodeId, getNotes, getOrCreateDefaultLaunchContext, getOrCreateDefaultLaunchContext, getPassword, getPermissions, getPid, getServiceUser, getTwoFactorAuthStatus, getUsername, getUsernameNamespace, hasAccountDisabled, hasAccountExpiryDate, hasAccountLocked, hasAuthorities, hasAuthority, hasCredentialExpiryDate, hasDefaultLaunchContexts, hasEmail, hasFamilyName, hasGivenName, hasNotes, hasPassword, hasServiceAccount, hasUsername, hasUsernameNamespace, incrementFailedLoginAttempts, isAccountDisabled, isAccountLocked, isAccountNonExpired, isAccountNonLocked, isCredentialsNonExpired, isEnabled, isExternal, isServiceAccount, isSystemUser, lockAccount, resetFailedLoginAttempts, setAccountDisabled, setAccountExpiry, setAccountLocked, setAuthorities, setCredentialExpiry, setEmail, setExternal, setFailedLoginAttempts, setFamilyName, setGivenName, setLastActive, setLastConnected, setModuleId, setNodeId, setNotes, setPassword, setPid, setServiceAccount, setSystemUser, setTwoFactorAuthStatus, setUsername, setUsernameNamespace, toPermissionEnum
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ca.cdr.api.model.json.IHasAuthorities
addAuthority, addAuthority, addAuthority, hasArgumentsForAuthority, hasAuthority
Methods inherited from interface ca.cdr.api.model.json.IHasUserData
addUserData, clearUserData, getUserData, getUserInt, getUserString, hasUserData, setUserData, setUserDataINN, setUserDataInternal
Methods inherited from interface ca.cdr.api.model.json.IOAuth2Session
getAuthorities
-
Field Details
-
FHIR_CONTEXT
- See Also:
-
-
Constructor Details
-
UserSessionDetailsJson
public UserSessionDetailsJson()Constructor -
UserSessionDetailsJson
Copy Constructor
-
-
Method Details
-
hasApprovedScopes
Does this session have any approved scopes- Specified by:
hasApprovedScopes
in interfaceIOAuth2Session
-
getApprovedScopes
If the session is an OAuth2 session (i.e. it is accessed via a bearer token that was granted by a SMART Auth server) this field will be populated with the set of scopes that were approved for the client- Specified by:
getApprovedScopes
in interfaceIOAuth2Session
-
setApprovedScopes
-
addUserData
-
addApprovedScope
-
removeApprovedScope
-
addLaunchResourceId
-
addFhirContextReference
-
addFhirContextReference
-
getLaunchResourceIds
-
getFhirContext
-
getLaunchResourceIdForResourceType
-
getLaunchResourceIdsForResourceType
-
addLaunchContextParameter
-
getLaunchContextParameters
-
getLaunchContextParameterValueForParameterName
-
addApprovedScopes
-
toJsonString
This method caches its output!! -
toString
- Overrides:
toString
in classUserDetailsJson
-
getName
- Specified by:
getName
in interfaceorg.springframework.security.core.AuthenticatedPrincipal
-
getOidcClientId
-
setOidcClientId
-
getOidcClientNodeId
-
setOidcClientNodeId
-
getOidcClientModuleId
-
setOidcClientModuleId
-
getFhirUserUrl
-
setFhirUserUrl
-
getClientPopulatedUserData
Description copied from interface:IHasUserData
Model objects wishing to implement user data can implement this interface, and only need to actually implement this method- Specified by:
getClientPopulatedUserData
in interfaceIHasUserData
-
addClaimsAsUserData
Adds all claims in the provided map as user data
-