public class SecurityContext extends Object implements Externalizable
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,
com.gigaspaces.security.AuthenticationToken authenticationToken)
Security context constructed upon authentication.
|
Modifier and Type | Method and Description |
---|---|
AuditDetails |
getAuditDetails() |
Authentication |
getAuthentication() |
com.gigaspaces.security.AuthenticationToken |
getAuthenticationToken() |
UserDetails |
getUserDetails() |
void |
readExternal(ObjectInput in) |
void |
writeExternal(ObjectOutput out) |
public SecurityContext()
Externalizable
public no-args constructorpublic SecurityContext(CredentialsProvider credentialsProvider)
public SecurityContext(SecurityContext securityContext)
securityContext
- a token for this session.public SecurityContext(UserDetails userDetails, com.gigaspaces.security.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 com.gigaspaces.security.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.