public final class UdbKit extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
UdbKit.Callback |
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
LOOKUP_PATH_CALLBACK |
static String |
LOOKUP_PATH_DENY_CALLBACK |
static String |
LOOKUP_PATH_GEN_URL_TOKEN |
static String |
LOOKUP_PATH_LOGIN |
static String |
LOOKUP_PATH_LOGOUT |
static String |
PARAM_SSL |
static String |
PARAM_URL |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
callback(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String servletPathPrefix,
String appid,
String appkey,
String homepage,
UdbKit.Callback c) |
static void |
denyCallback(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
static void |
genUrlToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String servletPathPrefix,
String appid,
String appkey) |
static String |
getRealUrl(javax.servlet.http.HttpServletRequest request,
String protocol,
String servletPathPrefix,
String lookupPath) |
static void |
login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String servletPathPrefix) |
static void |
logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String servletPathPrefix,
String appid,
String appkey,
String logoutpage,
UdbKit.Callback c) |
static String[] |
tryOssLogin(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String appid,
String appkey)
return [passport, yyuid] if success, null if fail
|
public static String getRealUrl(javax.servlet.http.HttpServletRequest request, String protocol, String servletPathPrefix, String lookupPath)
public static void login(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String servletPathPrefix)
throws Exception
Exceptionpublic static void genUrlToken(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String servletPathPrefix,
String appid,
String appkey)
throws IOException
IOExceptionpublic static void callback(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String servletPathPrefix,
String appid,
String appkey,
String homepage,
UdbKit.Callback c)
throws Exception
Exceptionpublic static void denyCallback(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException
IOExceptionpublic static void logout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String servletPathPrefix,
String appid,
String appkey,
String logoutpage,
UdbKit.Callback c)
throws IOException
IOExceptionpublic static String[] tryOssLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String appid, String appkey) throws IOException
IOExceptionCopyright © 2017. All rights reserved.