Package com.gigaspaces.security.service
Class SecurityContext
java.lang.Object
com.gigaspaces.security.service.SecurityContext
- All Implemented Interfaces:
SmartExternalizable,Externalizable,Serializable
Security context passed between proxy and server.
- Since:
- 7.0.1
- Author:
- Moran Avigdor
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionExternalizablepublic no-args constructorSecurityContext(CredentialsProvider credentialsProvider) SecurityContext(UserDetails userDetails, AuthenticationToken authenticationToken) Security context constructed upon authentication.SecurityContext(SecurityContext securityContext) Security context constructed for subsequent session interaction. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.serialization.SmartExternalizable
enabledSmartExternalizableWithReference
-
Constructor Details
-
SecurityContext
public SecurityContext()Externalizablepublic no-args constructor -
SecurityContext
-
SecurityContext
Security context constructed for subsequent session interaction.- Parameters:
securityContext- a token for this session.
-
SecurityContext
Security context constructed upon authentication.- Parameters:
userDetails- authenticated user details with populated authorities.authenticationToken- a token for this session.
-
-
Method Details
-
getUserDetails
- Returns:
- the userDetails (may be
null);nullwhen context is transfered after a successful authentication; non-nullwhen accessed from within anISpaceFilter.
-
getAuthentication
- Returns:
- the authentication (may be
null);nullwhen context is transfered before a successful authentication; non-nullwhen accessed from within anISpaceFilterafter successful authentication.
-
getAuthenticationToken
- Returns:
- the authenticationToken (may be
null);nullwhen context is transfered before a successful authentication; non-nullwhen accessed from within anISpaceFilterafter successful authentication.
-
getAuditDetails
- Returns:
- the auditDetails (may be
null);nullwhen context is transfered after a successful authentication; non-nullwhen accessed from within anISpaceFilter.
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
toString
-