|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.web.jaxrs.SecurityImpl
public class SecurityImpl
This class exposes parts of our public API using JAX-RS.
Field Summary |
---|
Fields inherited from interface ccc.api.core.Security |
---|
COLLECTION, CURRENT, PROPERTIES |
Constructor Summary | |
---|---|
SecurityImpl()
|
Method Summary | |
---|---|
java.lang.Boolean |
isLoggedIn()
Determine if a user is associated with the current session. |
java.lang.Boolean |
login(java.lang.String username,
java.lang.String password)
Log in to CCC. |
void |
logout()
Log out from the current session. |
static void |
logSuccesfulLogin(java.lang.String username,
java.lang.String ip,
java.lang.String forwarded)
Log a successful login attempt.. |
java.lang.String |
readAllProperties()
Read the properties for the session. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SecurityImpl()
Method Detail |
---|
public java.lang.Boolean isLoggedIn()
isLoggedIn
in interface Security
public java.lang.Boolean login(java.lang.String username, java.lang.String password)
login
in interface Security
username
- The user's username.password
- The user's password.
public void logout()
logout
in interface Security
public java.lang.String readAllProperties()
readAllProperties
in interface Security
public static void logSuccesfulLogin(java.lang.String username, java.lang.String ip, java.lang.String forwarded)
username
- The username used to log in.ip
- The IP address the user logged in from.forwarded
- The IP addresses the request has been forwarded for.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |