Example usage for org.springframework.security.cas ServiceProperties setAuthenticateAllArtifacts

List of usage examples for org.springframework.security.cas ServiceProperties setAuthenticateAllArtifacts

Introduction

In this page you can find the example usage for org.springframework.security.cas ServiceProperties setAuthenticateAllArtifacts.

Prototype

public final void setAuthenticateAllArtifacts(final boolean authenticateAllArtifacts) 

Source Link

Document

If true, then any non-null artifact (ticket) should be authenticated.

Usage

From source file:org.ambraproject.wombat.config.SpringSecurityConfiguration.java

private ServiceProperties serviceProperties() {
    ServiceProperties serviceProperties = new ServiceProperties();
    serviceProperties.setService(CAS_VALIDATION_URI);
    serviceProperties.setSendRenew(false);
    serviceProperties.setAuthenticateAllArtifacts(true);
    return serviceProperties;
}

From source file:org.esupportail.publisher.config.SecurityConfiguration.java

@Bean
public ServiceProperties serviceProperties() {
    ServiceProperties sp = new ServiceProperties();
    sp.setService(env.getRequiredProperty(CAS_SERVICE_URI));
    sp.setSendRenew(false);/*  ww w.jav a  2s  .  c  o  m*/
    sp.setAuthenticateAllArtifacts(true);
    return sp;
}