com.google.security.fences.policy.AccessLevel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fences-maven-enforcer-rule Show documentation
Show all versions of fences-maven-enforcer-rule Show documentation
Augments Java's access control by checking that a Maven Project and all its
dependencies conform to a policy that specifies which classes/packages can
link to which others.
package com.google.security.fences.policy;
/**
* An access control decision.
*/
public enum AccessLevel {
// TODO: augment DISALLOWED to bundle human-readable text explaining why
// access was/might-have-been denied.
/** Access is not allowed. */
DISALLOWED,
/** Access is allowed. */
ALLOWED,
;
static AccessLevel mostRestrictive(AccessLevel... levels) {
AccessLevel least = ALLOWED;
for (AccessLevel level : levels) {
if (level.compareTo(least) < 0) {
least = level;
}
}
return least;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy