public class HttpRequest.Auth extends Object
| Constructor and Description |
|---|
Auth(String type)
Authenication parameters will be initialized by the framework.
|
| Modifier and Type | Method and Description |
|---|---|
String |
email()
Email of the user requesting
|
String |
from()
If the URL is requested from other apps or an external source,
this method will identify the remote source.
|
boolean |
isAnonymous()
Check if the request is made by an unauthenticated source.
|
boolean |
isCookie()
Check if the request is made by a human user identified by HTTP cookies
|
boolean |
isExternalServer()
Check if the request made from external source
|
boolean |
isInternal()
Check if the request made by other applications
|
Integer |
userId()
ID of the user if obtained
|
public Auth(String type)
public Integer userId()
public String email()
public String from()
public boolean isInternal()
public boolean isExternalServer()
public boolean isCookie()
public boolean isAnonymous()
Copyright © 2017. All rights reserved.