com.kakawait.spring.security.cas.LaxServiceProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-security-cas-extension Show documentation
Show all versions of spring-security-cas-extension Show documentation
Spring security cas extension and additional implementation used by the starter
package com.kakawait.spring.security.cas;
import org.springframework.security.cas.ServiceProperties;
import org.springframework.util.Assert;
/**
* @author Thibaud Leprêtre
*/
public class LaxServiceProperties extends ServiceProperties {
private final boolean dynamicServiceResolution;
public LaxServiceProperties() {
this(true);
}
public LaxServiceProperties(boolean dynamicServiceResolution) {
this.dynamicServiceResolution = dynamicServiceResolution;
}
@Override
public void afterPropertiesSet() {
if (!dynamicServiceResolution) {
super.afterPropertiesSet();
} else {
Assert.hasLength(getArtifactParameter(), "artifactParameter cannot be empty.");
Assert.hasLength(getServiceParameter(), "serviceParameter cannot be empty.");
}
}
public boolean isDynamicServiceResolution() {
return dynamicServiceResolution;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy