|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gigaspaces.security.service.SecurityContext
public class SecurityContext
Security context passed between proxy and server.
Constructor Summary | |
---|---|
SecurityContext()
Externalizable public no-args constructor |
|
SecurityContext(SecurityContext securityContext)
Security context constructed for subsequent session interaction. |
|
SecurityContext(UserDetails userDetails)
Security context constructed for authentication purposes. |
|
SecurityContext(UserDetails userDetails,
com.gigaspaces.security.AuthenticationToken authenticationToken)
Security context constructed upon authentication. |
Method Summary | |
---|---|
AuditDetails |
getAuditDetails()
|
Authentication |
getAuthentication()
|
com.gigaspaces.security.AuthenticationToken |
getAuthenticationToken()
|
UserDetails |
getUserDetails()
|
void |
readExternal(ObjectInput in)
|
void |
writeExternal(ObjectOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityContext()
Externalizable
public no-args constructor
public SecurityContext(UserDetails userDetails)
userDetails
- user to authenticate.public SecurityContext(SecurityContext securityContext)
authenticationToken
- 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.Method Detail |
---|
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
|
GigaSpaces XAP 7.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |