org.frameworkset.web.token.ws.TokenService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-security-web-inf Show documentation
Show all versions of bboss-security-web-inf Show documentation
support session share between application cluster nodes and cross domain application nodes.support good application session monitor and session data statitic module.demo site http://session.bbossgroups.com/
package org.frameworkset.web.token.ws;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
@WebService(name = "TokenService", targetNamespace = "org.frameworkset.web.token.ws.TokenService")
public interface TokenService {
public @WebResult(name = "authTempToken", partName = "partAuthTempToken")
String genAuthTempToken(
@WebParam(name = "appid", partName = "partAppid") String appid,
@WebParam(name = "secret", partName = "partSecret") String secret,
@WebParam(name = "ticket", partName = "partTicket") String ticket)
throws Exception;
// public @WebResult(name = "dualToken", partName = "partDualToken")
// String genDualToken(
// @WebParam(name = "appid", partName = "partAppid") String appid,
// @WebParam(name = "secret", partName = "partSecret") String secret,
// @WebParam(name = "ticket", partName = "partTicket") String ticket)
// throws Exception;
public @WebResult(name = "tempToken", partName = "partTempToken") String genTempToken() throws Exception;
public @WebResult(name = "ticket", partName = "partTicket")
String genTicket(
@WebParam(name = "account", partName = "partAccount") String account,
@WebParam(name = "worknumber", partName = "partWorknumber") String worknumber,
@WebParam(name = "appid", partName = "partAppid") String appid,
@WebParam(name = "secret", partName = "partSecret") String secret)throws Exception;
public @WebResult(name = "authTempToken", partName = "partAuthTempToken")
TokenGetResponse getAuthTempToken(
@WebParam(name = "appid", partName = "partAppid") String appid,
@WebParam(name = "secret", partName = "partSecret") String secret,
@WebParam(name = "ticket", partName = "partTicket") String ticket)
throws Exception;
// public @WebResult(name = "dualToken", partName = "partDualToken")
// TokenGetResponse getDualToken(
// @WebParam(name = "appid", partName = "partAppid") String appid,
// @WebParam(name = "secret", partName = "partSecret") String secret,
// @WebParam(name = "ticket", partName = "partTicket") String ticket)
// throws Exception;
//
// public @WebResult(name = "dualToken", partName = "partDualToken") TokenGetResponse getDualTokenWithDefaultLiveTime(@WebParam(name = "appid", partName = "partAppid") String appid,
// @WebParam(name = "secret", partName = "partSecret") String secret,
// @WebParam(name = "ticket", partName = "partTicket") String ticket) throws Exception;
public @WebResult(name = "tempToken", partName = "partTempToken") TokenGetResponse getTempToken() throws Exception;
public @WebResult(name = "ticket", partName = "partTicket")
TicketGetResponse getTicket(
@WebParam(name = "account", partName = "partAccount") String account,
@WebParam(name = "worknumber", partName = "partWorknumber") String worknumber,
@WebParam(name = "appid", partName = "partAppid") String appid,
@WebParam(name = "secret", partName = "partSecret") String secret)throws Exception;
/**
* 销毁令牌票据ticket
* @param token
* @param appid
* @param secret
*/
public @WebResult(name = "destroyTicket", partName = "partDestroyTicket") TicketGetResponse destroyTicket(@WebParam(name = "ticket", partName = "partTicket") String ticket,@WebParam(name = "appid", partName = "partAppid") String appid,
@WebParam(name = "secret", partName = "partSecret") String secret)throws Exception;
/**
* 刷新令牌票据ticket有效时间,如果ticket已经失效则抛出异常
* @param token
* @param appid
* @param secret
*/
public @WebResult(name = "refreshTicket", partName = "partRefreshTicket") TicketGetResponse refreshTicket(@WebParam(name = "ticket", partName = "partTicket") String ticket,@WebParam(name = "appid", partName = "partAppid") String appid,
@WebParam(name = "secret", partName = "partSecret") String secret) throws Exception;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy