public final class JFPAuthentication extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getAdminPassword(Map<String,String[]> request)
Retrieve an admin password from an HTTP request.
|
static JFPKey |
getKey(Map<String,String[]> request)
Retrieve a key from an HTTP request.
|
static JFPUserName |
getUser(Map<String,String[]> request)
Retrieve a username from an HTTP request.
|
static com.io7m.jfunctional.Pair<JFPUserName,JFPKey> |
getUserAndKey(Map<String,String[]> request)
Retrieve a username and key from an HTTP request.
|
public static String getAdminPassword(Map<String,String[]> request) throws JFPExceptionAuthentication
request
- The request parameters.JFPExceptionAuthentication
- If either the user or key are invalid or missing.public static JFPKey getKey(Map<String,String[]> request) throws JFPExceptionAuthentication
request
- The request parameters.JFPExceptionAuthentication
- If the key is invalid or missing.public static JFPUserName getUser(Map<String,String[]> request) throws JFPExceptionAuthentication
request
- The request parameters.JFPExceptionAuthentication
- If the username is invalid or missing.public static com.io7m.jfunctional.Pair<JFPUserName,JFPKey> getUserAndKey(Map<String,String[]> request) throws JFPExceptionAuthentication
request
- The request parameters.JFPExceptionAuthentication
- If either the user or key are invalid or missing.Copyright © 2015 <code@io7m.com> http://io7m.com