本文整理汇总了Java中org.jasig.cas.web.support.CookieRetrievingCookieGenerator类的典型用法代码示例。如果您正苦于以下问题:Java CookieRetrievingCookieGenerator类的具体用法?Java CookieRetrievingCookieGenerator怎么用?Java CookieRetrievingCookieGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CookieRetrievingCookieGenerator类属于org.jasig.cas.web.support包,在下文中一共展示了CookieRetrievingCookieGenerator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setUp
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
this.warnCookieGenerator = new CookieRetrievingCookieGenerator();
this.warnCookieGenerator.setCookiePath("");
this.tgtCookieGenerator = new CookieRetrievingCookieGenerator();
this.tgtCookieGenerator.setCookiePath("");
this.action.setTicketGrantingTicketCookieGenerator(this.tgtCookieGenerator);
this.action.setWarnCookieGenerator(this.warnCookieGenerator);
final ArgumentExtractor[] argExtractors = new ArgumentExtractor[] {new DefaultArgumentExtractor(
new WebApplicationServiceFactory()
)};
this.action.setArgumentExtractors(Arrays.asList(argExtractors));
this.servicesManager = mock(ServicesManager.class);
when(this.servicesManager.findServiceBy(any(Service.class))).thenReturn(
org.jasig.cas.services.TestUtils.getRegisteredService("test"));
this.action.setServicesManager(this.servicesManager);
this.action.afterPropertiesSet();
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:22,代码来源:InitialFlowSetupActionTests.java
示例2: onSetUp
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Before
public void onSetUp() throws Exception {
this.ticketGrantingTicketCookieGenerator = new CookieRetrievingCookieGenerator();
ticketGrantingTicketCookieGenerator.setCookieName("TGT");
this.action = new SendTicketGrantingTicketAction();
this.action.setCentralAuthenticationService(getCentralAuthenticationService());
this.action.setTicketGrantingTicketCookieGenerator(ticketGrantingTicketCookieGenerator);
this.action.setServicesManager(getServicesManager());
this.action.setCreateSsoSessionCookieOnRenewAuthentications(true);
this.action.afterPropertiesSet();
this.context = new MockRequestContext();
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:17,代码来源:SendTicketGrantingTicketActionTests.java
示例3: onSetUp
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Before
public void onSetUp() throws Exception {
this.request = new MockHttpServletRequest();
this.response = new MockHttpServletResponse();
this.requestContext = mock(RequestContext.class);
final ServletExternalContext servletExternalContext = mock(ServletExternalContext.class);
when(this.requestContext.getExternalContext()).thenReturn(servletExternalContext);
when(servletExternalContext.getNativeRequest()).thenReturn(request);
when(servletExternalContext.getNativeResponse()).thenReturn(response);
final LocalAttributeMap flowScope = new LocalAttributeMap();
when(this.requestContext.getFlowScope()).thenReturn(flowScope);
this.warnCookieGenerator = new CookieRetrievingCookieGenerator();
this.serviceRegistryDao = new InMemoryServiceRegistryDaoImpl();
this.serviceManager = new DefaultServicesManagerImpl(serviceRegistryDao);
this.serviceManager.setApplicationEventPublisher(mock(ApplicationEventPublisher.class));
this.serviceManager.reload();
this.warnCookieGenerator.setCookieName("test");
this.ticketGrantingTicketCookieGenerator = new CookieRetrievingCookieGenerator();
this.ticketGrantingTicketCookieGenerator.setCookieName(COOKIE_TGC_ID);
this.logoutAction = new LogoutAction();
this.logoutAction.setServicesManager(this.serviceManager);
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:27,代码来源:LogoutActionTests.java
示例4: onSetUp
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Before
public void onSetUp() throws Exception {
this.request = new MockHttpServletRequest();
this.response = new MockHttpServletResponse();
this.requestContext = mock(RequestContext.class);
final ServletExternalContext servletExternalContext = mock(ServletExternalContext.class);
when(this.requestContext.getExternalContext()).thenReturn(servletExternalContext);
when(servletExternalContext.getNativeRequest()).thenReturn(request);
when(servletExternalContext.getNativeResponse()).thenReturn(response);
final LocalAttributeMap flowScope = new LocalAttributeMap();
when(this.requestContext.getFlowScope()).thenReturn(flowScope);
this.warnCookieGenerator = new CookieRetrievingCookieGenerator();
this.serviceRegistryDao = new InMemoryServiceRegistryDaoImpl();
this.serviceManager = new DefaultServicesManagerImpl(serviceRegistryDao);
this.serviceManager.reload();
this.warnCookieGenerator.setCookieName("test");
this.ticketGrantingTicketCookieGenerator = new CookieRetrievingCookieGenerator();
this.ticketGrantingTicketCookieGenerator.setCookieName(COOKIE_TGC_ID);
this.logoutAction = new LogoutAction();
this.logoutAction.setServicesManager(this.serviceManager);
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:26,代码来源:LogoutActionTests.java
示例5: setUp
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
this.warnCookieGenerator = new CookieRetrievingCookieGenerator();
this.warnCookieGenerator.setCookiePath("");
this.tgtCookieGenerator = new CookieRetrievingCookieGenerator();
this.tgtCookieGenerator.setCookiePath("");
this.action.setTicketGrantingTicketCookieGenerator(this.tgtCookieGenerator);
this.action.setWarnCookieGenerator(this.warnCookieGenerator);
final ArgumentExtractor[] argExtractors = new ArgumentExtractor[] {new CasArgumentExtractor()};
this.action.setArgumentExtractors(Arrays.asList(argExtractors));
this.servicesManager = mock(ServicesManager.class);
when(this.servicesManager.findServiceBy(any(Service.class))).thenReturn(TestUtils.getRegisteredService("test"));
this.action.setServicesManager(this.servicesManager);
this.action.afterPropertiesSet();
}
开发者ID:xuchengdong,项目名称:cas4.1.9,代码行数:18,代码来源:InitialFlowSetupActionTests.java
示例6: SendTicketGrantingTicketAction
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
/**
* Instantiates a new Send ticket granting ticket action.
*
* @param ticketGrantingTicketCookieGenerator the ticket granting ticket cookie generator
* @param centralAuthenticationService the central authentication service
* @param servicesManager the services manager
*/
public SendTicketGrantingTicketAction(final CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator,
final CentralAuthenticationService centralAuthenticationService,
final ServicesManager servicesManager) {
super();
this.ticketGrantingTicketCookieGenerator = ticketGrantingTicketCookieGenerator;
this.centralAuthenticationService = centralAuthenticationService;
this.servicesManager = servicesManager;
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:16,代码来源:SendTicketGrantingTicketAction.java
示例7: TerminateSessionAction
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
/**
* Creates a new instance with the given parameters.
* @param cas Core business logic object.
* @param tgtCookieGenerator TGT cookie generator.
* @param warnCookieGenerator Warn cookie generator.
*/
public TerminateSessionAction(
final CentralAuthenticationService cas,
final CookieRetrievingCookieGenerator tgtCookieGenerator,
final CookieRetrievingCookieGenerator warnCookieGenerator) {
this.centralAuthenticationService = cas;
this.ticketGrantingTicketCookieGenerator = tgtCookieGenerator;
this.warnCookieGenerator = warnCookieGenerator;
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:15,代码来源:TerminateSessionAction.java
示例8: setUp
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
this.warnCookieGenerator = new CookieRetrievingCookieGenerator();
this.tgtCookieGenerator = new CookieRetrievingCookieGenerator();
this.action.setTicketGrantingTicketCookieGenerator(this.tgtCookieGenerator);
this.action.setWarnCookieGenerator(this.warnCookieGenerator);
final ArgumentExtractor[] argExtractors = new ArgumentExtractor[] {new CasArgumentExtractor()};
this.action.setArgumentExtractors(Arrays.asList(argExtractors));
this.servicesManager = mock(ServicesManager.class);
when(this.servicesManager.findServiceBy(any(Service.class))).thenReturn(TestUtils.getRegisteredService("test"));
this.action.setServicesManager(this.servicesManager);
this.action.afterPropertiesSet();
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:16,代码来源:InitialFlowSetupActionTests.java
示例9: onSetUp
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Before
public void onSetUp() throws Exception {
this.ticketGrantingTicketCookieGenerator = new CookieRetrievingCookieGenerator();
ticketGrantingTicketCookieGenerator.setCookieName("TGT");
this.action = new SendTicketGrantingTicketAction(ticketGrantingTicketCookieGenerator,
getCentralAuthenticationService(), getServicesManager());
this.action.setServicesManager(getServicesManager());
this.action.setCreateSsoSessionCookieOnRenewAuthentications(true);
this.action.afterPropertiesSet();
this.context = new MockRequestContext();
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:15,代码来源:SendTicketGrantingTicketActionTests.java
示例10: setUp
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
this.warnCookieGenerator = new CookieRetrievingCookieGenerator();
this.warnCookieGenerator.setCookiePath("");
this.tgtCookieGenerator = new CookieRetrievingCookieGenerator();
this.tgtCookieGenerator.setCookiePath("");
this.action.setTicketGrantingTicketCookieGenerator(this.tgtCookieGenerator);
this.action.setWarnCookieGenerator(this.warnCookieGenerator);
final ArgumentExtractor[] argExtractors = new ArgumentExtractor[] {new CasArgumentExtractor()};
this.action.setArgumentExtractors(Arrays.asList(argExtractors));
this.action.afterPropertiesSet();
this.action.afterPropertiesSet();
}
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:14,代码来源:InitialFlowSetupActionTests.java
示例11: setUp
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
this.warnCookieGenerator = new CookieRetrievingCookieGenerator();
this.tgtCookieGenerator = new CookieRetrievingCookieGenerator();
this.action.setTicketGrantingTicketCookieGenerator(this.tgtCookieGenerator);
this.action.setWarnCookieGenerator(this.warnCookieGenerator);
final ArgumentExtractor[] argExtractors = new ArgumentExtractor[] {new CasArgumentExtractor()};
this.action.setArgumentExtractors(Arrays.asList(argExtractors));
this.action.afterPropertiesSet();
this.action.afterPropertiesSet();
}
开发者ID:kevin3061,项目名称:cas-4.0.1,代码行数:12,代码来源:InitialFlowSetupActionTests.java
示例12: setTicketGrantingTicketCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
public void setTicketGrantingTicketCookieGenerator(
final CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator) {
this.ticketGrantingTicketCookieGenerator = ticketGrantingTicketCookieGenerator;
logoutController
.setTicketGrantingTicketCookieGenerator(ticketGrantingTicketCookieGenerator);
}
开发者ID:NCIP,项目名称:cagrid-core,代码行数:8,代码来源:CaGridLogoutController.java
示例13: setTicketGrantingTicketCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Autowired
public void setTicketGrantingTicketCookieGenerator(
@Qualifier("ticketGrantingTicketCookieGenerator")
final CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator) {
this.ticketGrantingTicketCookieGenerator = ticketGrantingTicketCookieGenerator;
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:7,代码来源:InitialFlowSetupAction.java
示例14: setWarnCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Autowired
public void setWarnCookieGenerator(@Qualifier("warnCookieGenerator")
final CookieRetrievingCookieGenerator warnCookieGenerator) {
this.warnCookieGenerator = warnCookieGenerator;
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:6,代码来源:InitialFlowSetupAction.java
示例15: setTicketGrantingTicketCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
public void setTicketGrantingTicketCookieGenerator(final CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator) {
this.ticketGrantingTicketCookieGenerator = ticketGrantingTicketCookieGenerator;
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:4,代码来源:SendTicketGrantingTicketAction.java
示例16: setTicketGrantingTicketCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
public void setTicketGrantingTicketCookieGenerator(
final CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator) {
this.ticketGrantingTicketCookieGenerator = ticketGrantingTicketCookieGenerator;
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:5,代码来源:InitialFlowSetupAction.java
示例17: setWarnCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
public void setWarnCookieGenerator(final CookieRetrievingCookieGenerator warnCookieGenerator) {
this.warnCookieGenerator = warnCookieGenerator;
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:4,代码来源:InitialFlowSetupAction.java
示例18: setTicketGrantingTicketCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
/**
* @deprecated As of 4.1, use constructors instead.
* @param ticketGrantingTicketCookieGenerator the id generator
*/
@Deprecated
public void setTicketGrantingTicketCookieGenerator(final CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator) {
logger.warn("setTicketGrantingTicketCookieGenerator() is deprecated and has no effect. Use constructors instead.");
}
开发者ID:hsj-xiaokang,项目名称:springboot-shiro-cas-mybatis,代码行数:9,代码来源:SendTicketGrantingTicketAction.java
示例19: setTicketGrantingTicketCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
public void setTicketGrantingTicketCookieGenerator(final CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator) {
this.ticketGrantingTicketCookieGenerator= ticketGrantingTicketCookieGenerator;
}
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:4,代码来源:SendTicketGrantingTicketAction.java
示例20: onSetUp
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Before
public void onSetUp() throws Exception {
this.action = new SendTicketGrantingTicketAction();
this.ticketGrantingTicketCookieGenerator = new CookieRetrievingCookieGenerator();
this.ticketGrantingTicketCookieGenerator.setCookieName("TGT");
this.action.setCentralAuthenticationService(getCentralAuthenticationService());
this.action.setTicketGrantingTicketCookieGenerator(this.ticketGrantingTicketCookieGenerator);
this.action.afterPropertiesSet();
this.context = new MockRequestContext();
}
开发者ID:luotuo,项目名称:cas4.0.x-server-wechat,代码行数:17,代码来源:SendTicketGrantingTicketActionTests.java
注:本文中的org.jasig.cas.web.support.CookieRetrievingCookieGenerator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论