
org.cloudfoundry.identity.uaa.zone.DenyAccessToUaaAdvice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudfoundry-identity-server
Show all versions of cloudfoundry-identity-server
Cloud Foundry User Account and Authentication
package org.cloudfoundry.identity.uaa.zone;
import org.springframework.security.access.AccessDeniedException;
public class DenyAccessToUaaAdvice {
public void checkIdentityZone(IdentityZone identityZone) {
if (IdentityZone.getUaa().equals(identityZone)) {
throw new AccessDeniedException("Access to UAA is not allowed.");
}
}
public void checkIdentityZoneId(String identityZoneId) {
if (IdentityZone.getUaa().getId().equals(identityZoneId)) {
throw new AccessDeniedException("Access to UAA is not allowed.");
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy