Class MobileappToken
- java.lang.Object
-
- org.ametys.plugins.mobileapp.site.MobileappToken
-
- All Implemented Interfaces:
GetToken
public class MobileappToken extends Object implements GetToken
Handle token for mobileapp requests.
-
-
Field Summary
Fields Modifier and Type Field Description static Pattern
MOBILEAPP_URI_PATTERN
Regexp for webdav uri
-
Constructor Summary
Constructors Constructor Description MobileappToken()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getToken(Request request)
Get an authentication token from the request, if any.String
getTokenContext(Request request)
Get an authentication token context from the request, if any.
-
-
-
Field Detail
-
MOBILEAPP_URI_PATTERN
public static final Pattern MOBILEAPP_URI_PATTERN
Regexp for webdav uri
-
-
Constructor Detail
-
MobileappToken
public MobileappToken()
-
-
Method Detail
-
getToken
public String getToken(Request request)
Description copied from interface:GetToken
Get an authentication token from the request, if any.
-
getTokenContext
public String getTokenContext(Request request)
Description copied from interface:GetToken
Get an authentication token context from the request, if any.- Specified by:
getTokenContext
in interfaceGetToken
- Parameters:
request
- the current request.- Returns:
- the token context or null if it doesn't exist.
-
-