net.bryansaunders.jee6divelog.service.rest
Class SecurityApi

java.lang.Object
  extended by net.bryansaunders.jee6divelog.service.rest.SecurityApi

@RequestScoped
public class SecurityApi
extends java.lang.Object

Security REST API.

Author:
Bryan Saunders

Constructor Summary
SecurityApi()
           
 
Method Summary
 javax.ws.rs.core.Response identify()
          Identifies the currently logged in REST user.
 javax.ws.rs.core.Response login(Credentials incomingCredentials)
          Identifies the currently logged in REST user.
 javax.ws.rs.core.Response logout()
          Logout the Current REST User.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityApi

public SecurityApi()
Method Detail

login

public javax.ws.rs.core.Response login(Credentials incomingCredentials)
Identifies the currently logged in REST user.

Parameters:
incomingCredentials - Users Login Credentials
Returns:
User Identity

identify

public javax.ws.rs.core.Response identify()
Identifies the currently logged in REST user.

Returns:
User Identity

logout

public javax.ws.rs.core.Response logout()
Logout the Current REST User.

Returns:
Logout Result


Copyright © 2012 Bryan Saunders. All Rights Reserved.