public class SecurityContext extends Object implements SmartExternalizable
Constructor and Description |
---|
SecurityContext()
Externalizable public no-args constructor |
SecurityContext(CredentialsProvider credentialsProvider) |
SecurityContext(SecurityContext securityContext)
Security context constructed for subsequent session interaction.
|
SecurityContext(UserDetails userDetails,
AuthenticationToken authenticationToken)
Security context constructed upon authentication.
|
Modifier and Type | Method and Description |
---|---|
AuditDetails |
getAuditDetails() |
Authentication |
getAuthentication() |
AuthenticationToken |
getAuthenticationToken() |
UserDetails |
getUserDetails() |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
enabledSmartExternalizableWithReference
public SecurityContext()
Externalizable
public no-args constructorpublic SecurityContext(CredentialsProvider credentialsProvider)
public SecurityContext(SecurityContext securityContext)
securityContext
- a token for this session.public SecurityContext(UserDetails userDetails, AuthenticationToken authenticationToken)
userDetails
- authenticated user details with populated authorities.authenticationToken
- a token for this session.public UserDetails getUserDetails()
null
); null
when context is
transfered after a successful authentication; non-null
when accessed from within
an ISpaceFilter
.public Authentication getAuthentication()
null
); null
when context is
transfered before a successful authentication; non-null
when accessed from
within an ISpaceFilter
after successful authentication.public AuthenticationToken getAuthenticationToken()
null
); null
when context is
transfered before a successful authentication; non-null
when accessed from
within an ISpaceFilter
after successful authentication.public AuditDetails getAuditDetails()
null
); null
when context is
transfered after a successful authentication; non-null
when accessed from within
an ISpaceFilter
.public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © GigaSpaces.