All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.cloudfoundry.identity.uaa.zone.DenyAccessToUaaAdvice Maven / Gradle / Ivy

The newest version!
package org.cloudfoundry.identity.uaa.zone;

import org.springframework.security.access.AccessDeniedException;

public class DenyAccessToUaaAdvice {
    
    public void checkIdentityZone(IdentityZone identityZone) {
        if (identityZone != null && identityZone.isUaa()) {
            throw new AccessDeniedException("Access to UAA is not allowed.");
        }
    }
    
    public void checkIdentityZoneId(String identityZoneId) {
        if (IdentityZone.getUaaZoneId().equals(identityZoneId)) {
            throw new AccessDeniedException("Access to UAA is not allowed.");
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy