当前位置: 首页>>代码示例>>Java>>正文


Java AbstractAuthenticatedWebSession类代码示例

本文整理汇总了Java中org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession的典型用法代码示例。如果您正苦于以下问题:Java AbstractAuthenticatedWebSession类的具体用法?Java AbstractAuthenticatedWebSession怎么用?Java AbstractAuthenticatedWebSession使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AbstractAuthenticatedWebSession类属于org.apache.wicket.authroles.authentication包,在下文中一共展示了AbstractAuthenticatedWebSession类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: LoginPage

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
public LoginPage(PageParameters parameters) {
	super(parameters);

	if (((AbstractAuthenticatedWebSession) getSession()).isSignedIn()) {
		continueToOriginalDestination();
	}
	add(new LoginForm("loginForm"));
}
 
开发者ID:MarcGiffing,项目名称:wicket-spring-boot,代码行数:9,代码来源:LoginPage.java

示例2: authenticatedWebSessionConfig

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Bean
public AuthenticatedWebSessionConfig authenticatedWebSessionConfig(){
	return new AuthenticatedWebSessionConfig() {
		
		@Override
		public Class<? extends AbstractAuthenticatedWebSession> getAuthenticatedWebSessionClass() {
			return SecureWebSession.class;
		}
	};
}
 
开发者ID:MarcGiffing,项目名称:wicket-spring-boot,代码行数:11,代码来源:SpringSecurityConfig.java

示例3: getWebSessionClass

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
    return Session.class;
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:5,代码来源:Application.java

示例4: onInitialize

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected void onInitialize() {
    super.onInitialize();

    this.originalUrl = RestartResponseAtInterceptPageException.getOriginalUrl();

    this.form = new Form<>("form");
    this.add(this.form);
    this.loginField = new TextField<>("loginField", new PropertyModel<>(this, "login"));
    this.loginField.setRequired(true);
    this.form.add(this.loginField);
    this.loginFeedback = new TextFeedbackPanel("loginFeedback", this.loginField);
    this.form.add(this.loginFeedback);

    this.passwordField = new PasswordTextField("passwordField", new PropertyModel<>(this, "password"));
    this.passwordField.setRequired(true);
    this.form.add(this.passwordField);
    this.passwordFeedback = new TextFeedbackPanel("passwordFeedback", this.passwordField);
    this.form.add(this.passwordFeedback);

    this.language = "Khmer";
    this.languageField = new DropDownChoice<String>("languageField", new PropertyModel<>(this, "language"), new PropertyModel<>(this, "languages")) {
        @Override
        protected boolean wantOnSelectionChangedNotifications() {
            return true;
        }

        @Override
        protected void onSelectionChanged(String newSelection) {
            if (StringUtils.equalsIgnoreCase("Khmer", newSelection)) {
                this.getSession().setLocale(new Locale("km"));
            } else {
                this.getSession().setLocale(new Locale("en"));
            }
        }
    };
    this.languageField.setRequired(true);
    this.form.add(this.languageField);
    this.languageFeedback = new TextFeedbackPanel("languageFeedback", this.languageField);
    this.form.add(this.languageFeedback);

    this.loginButton = new Button("loginButton");
    this.loginButton.setOnSubmit(this::loginButtonOnSubmit);
    this.form.add(this.loginButton);

    if (AbstractAuthenticatedWebSession.get().isSignedIn()) {
        setResponsePage(getApplication().getHomePage());
    }
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:50,代码来源:LoginPage.java

示例5: onInitialize

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected void onInitialize() {
    super.onInitialize();
    AbstractAuthenticatedWebSession.get().invalidateNow();
    setResponsePage(Application.get().getHomePage());
}
 
开发者ID:PkayJava,项目名称:MBaaS,代码行数:7,代码来源:LogoutPage.java

示例6: getWebSessionClass

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
    return MySession.class;
}
 
开发者ID:merzlikinvs,项目名称:cas-playground,代码行数:5,代码来源:ExampleApplication.java

示例7: getWebSessionClass

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
    return MidPointAuthWebSession.class;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:5,代码来源:MidPointApplication.java

示例8: getWebSessionClass

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
    return SingularSession.class;
}
 
开发者ID:opensingular,项目名称:singular-server,代码行数:5,代码来源:SingularServerApplication.java

示例9: getWebSessionClass

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
	return WebSession.class;
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:5,代码来源:Application.java

示例10: get

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
public static WebSession get() {
	return (WebSession)AbstractAuthenticatedWebSession.get();
}
 
开发者ID:apache,项目名称:openmeetings,代码行数:4,代码来源:WebSession.java

示例11: getWebSessionClass

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
    return EtcdWebSession.class;
}
 
开发者ID:nikfoundas,项目名称:etcd-viewer,代码行数:5,代码来源:EtcdViewerApplication.java

示例12: getWebSessionClass

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
	return SecureWebSession.class;
}
 
开发者ID:MarcGiffing,项目名称:wicket-spring-boot,代码行数:5,代码来源:WicketWebApplicationConfig.java

示例13: getWebSessionClass

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionClass() {
	return applicationContext.getBean(AuthenticatedWebSessionConfig.class).getAuthenticatedWebSessionClass();
}
 
开发者ID:MarcGiffing,项目名称:wicket-spring-boot,代码行数:5,代码来源:WicketBootSecuredWebApplication.java

示例14: getWebSessionImplClass

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
@Override
protected Class<? extends AbstractAuthenticatedWebSession> getWebSessionImplClass()
{
    return WicketWebSession.class;
}
 
开发者ID:timpanogos,项目名称:crestj,代码行数:6,代码来源:CrestServlet.java

示例15: setWicketSessionClass

import org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession; //导入依赖的package包/类
/**
 * Sets the {@link AbstractAuthenticatedWebSession} for the application.
 * @param wicketSessionClass the {@link AbstractAuthenticatedWebSession} class.
 * @return the {@link CroquetWicketBuilder}.
 */
public CroquetWicketBuilder<T>
    setWicketSessionClass(final Class<? extends AbstractAuthenticatedWebSession> wicketSessionClass) {
    settings.setWicketSessionClass(wicketSessionClass);
    return this;
}
 
开发者ID:Metrink,项目名称:croquet,代码行数:11,代码来源:CroquetWicketBuilder.java


注:本文中的org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。