/** * <p>Enables the stateless mode of the {@link org.picketlink.Identity} bean. In this case, the bean will be * {@link javax.enterprise.context.RequestScoped}.</p> * * <p>Default is false.</p> * * @return */ public IdentityBeanConfigurationBuilder stateless() { scope(RequestScoped.class); return this; }
@Override protected Builder<IdentityBeanConfiguration> readFrom(IdentityBeanConfiguration fromConfiguration) throws SecurityConfigurationException { if (RequestScoped.class.equals(fromConfiguration.getScope())) { this.stateless(); } return this; } }
@Override protected SecurityConfiguration create() throws SecurityConfigurationException { List<IdentityConfiguration> identityConfigurations = new ArrayList<IdentityConfiguration>(); if (this.identityConfigurationBuilder != null) { identityConfigurations = this.identityConfigurationBuilder.buildAll(); } HttpSecurityConfiguration httpSecurityConfiguration = null; if (this.httpSecurityBuilder != null) { httpSecurityConfiguration = this.httpSecurityBuilder.create(); } return new SecurityConfiguration(identityConfigurations, this.identityBeanConfigurationBuilder.create(), httpSecurityConfiguration); }
@Override protected Builder<IdentityBeanConfiguration> readFrom(IdentityBeanConfiguration fromConfiguration) throws SecurityConfigurationException { if (RequestScoped.class.equals(fromConfiguration.getScope())) { this.stateless(); } return this; } }
@Override protected SecurityConfiguration create() throws SecurityConfigurationException { List<IdentityConfiguration> identityConfigurations = new ArrayList<IdentityConfiguration>(); if (this.identityConfigurationBuilder != null) { identityConfigurations = this.identityConfigurationBuilder.buildAll(); } HttpSecurityConfiguration httpSecurityConfiguration = null; if (this.httpSecurityBuilder != null) { httpSecurityConfiguration = this.httpSecurityBuilder.create(); } return new SecurityConfiguration(identityConfigurations, this.identityBeanConfigurationBuilder.create(), httpSecurityConfiguration); }
@Override protected Builder<IdentityBeanConfiguration> readFrom(IdentityBeanConfiguration fromConfiguration) throws SecurityConfigurationException { if (RequestScoped.class.equals(fromConfiguration.getScope())) { this.stateless(); } return this; } }
@Override protected SecurityConfiguration create() throws SecurityConfigurationException { List<IdentityConfiguration> identityConfigurations = new ArrayList<IdentityConfiguration>(); if (this.identityConfigurationBuilder != null) { identityConfigurations = this.identityConfigurationBuilder.buildAll(); } HttpSecurityConfiguration httpSecurityConfiguration = null; if (this.httpSecurityBuilder != null) { httpSecurityConfiguration = this.httpSecurityBuilder.create(); } return new SecurityConfiguration(identityConfigurations, this.identityBeanConfigurationBuilder.create(), httpSecurityConfiguration); }
/** * <p>Enables the stateless mode of the {@link org.picketlink.Identity} bean. In this case, the bean will be * {@link javax.enterprise.context.RequestScoped}.</p> * * <p>Default is false.</p> * * @return */ public IdentityBeanConfigurationBuilder stateless() { scope(RequestScoped.class); return this; }
/** * <p>Enables the stateless mode of the {@link org.picketlink.Identity} bean. In this case, the bean will be * {@link javax.enterprise.context.RequestScoped}.</p> * * <p>Default is false.</p> * * @return */ public IdentityBeanConfigurationBuilder stateless() { scope(RequestScoped.class); return this; }