/** * <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>Convenience methods to configure HTTP security.</p> * * @return The builder responsible to provide the configuration options for the identity bean. */ @Override public HttpSecurityBuilder http() { if (this.httpSecurityBuilder == null) { this.httpSecurityBuilder = new HttpSecurityBuilder(this); } return this.httpSecurityBuilder; }
/** * <p>Builds a {@link org.picketlink.config.SecurityConfiguration} instance.</p> * * @return The consolidated configuration. */ @Override public SecurityConfiguration build() { return create(); }
@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 IdentityBeanConfiguration create() throws SecurityConfigurationException { return new IdentityBeanConfiguration(this.scope); }
public SecurityConfiguration build() { return this.builder.build(); }
public IdentityConfigurationBuilder idmConfig() { return this.builder.idmConfig(); }
@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>Convenience methods to configure HTTP security.</p> * * @return The builder responsible to provide the configuration options for the identity bean. */ @Override public HttpSecurityBuilder http() { if (this.httpSecurityBuilder == null) { this.httpSecurityBuilder = new HttpSecurityBuilder(this); } return this.httpSecurityBuilder; }
/** * <p>Builds a {@link org.picketlink.config.SecurityConfiguration} instance.</p> * * @return The consolidated configuration. */ @Override public SecurityConfiguration build() { return create(); }
@Override protected IdentityBeanConfiguration create() throws SecurityConfigurationException { return new IdentityBeanConfiguration(this.scope); }
@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>Convenience methods to configure HTTP security.</p> * * @return The builder responsible to provide the configuration options for the identity bean. */ @Override public HttpSecurityBuilder http() { if (this.httpSecurityBuilder == null) { this.httpSecurityBuilder = new HttpSecurityBuilder(this); } return this.httpSecurityBuilder; }
/** * <p>Builds a {@link org.picketlink.config.SecurityConfiguration} instance.</p> * * @return The consolidated configuration. */ @Override public SecurityConfiguration build() { return create(); }
@Override protected IdentityBeanConfiguration create() throws SecurityConfigurationException { return new IdentityBeanConfiguration(this.scope); }