本文整理汇总了Java中org.jasig.cas.web.support.CookieRetrievingCookieGenerator类的典型用法代码示例。如果您正苦于以下问题:Java CookieRetrievingCookieGenerator类的具体用法?Java CookieRetrievingCookieGenerator怎么用?Java CookieRetrievingCookieGenerator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CookieRetrievingCookieGenerator类属于org.jasig.cas.web.support包,在下文中一共展示了CookieRetrievingCookieGenerator类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
}
示例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);
}
示例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);
}
示例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();
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例12: setTicketGrantingTicketCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
public void setTicketGrantingTicketCookieGenerator(
final CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator) {
this.ticketGrantingTicketCookieGenerator = ticketGrantingTicketCookieGenerator;
logoutController
.setTicketGrantingTicketCookieGenerator(ticketGrantingTicketCookieGenerator);
}
示例13: setTicketGrantingTicketCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Autowired
public void setTicketGrantingTicketCookieGenerator(
@Qualifier("ticketGrantingTicketCookieGenerator")
final CookieRetrievingCookieGenerator ticketGrantingTicketCookieGenerator) {
this.ticketGrantingTicketCookieGenerator = ticketGrantingTicketCookieGenerator;
}
示例14: setWarnCookieGenerator
import org.jasig.cas.web.support.CookieRetrievingCookieGenerator; //导入依赖的package包/类
@Autowired
public void setWarnCookieGenerator(@Qualifier("warnCookieGenerator")
final CookieRetrievingCookieGenerator warnCookieGenerator) {
this.warnCookieGenerator = warnCookieGenerator;
}
示例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