Interface SecurityLevelPolicyEvaluationContext
-
public interface SecurityLevelPolicyEvaluationContextContext in which a security level policy is evaluated
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.util.Optional<AttributeSource>getIdpAttributeSource()default java.util.Optional<java.lang.String>getSecurityLevelName()default java.util.Optional<StringPath>getSecurityLevelPath()com.google.common.collect.ImmutableCollection<java.lang.String>getSecurityZones()java.util.Optional<WebAuthUser>getUser()
-
-
-
Method Detail
-
getSecurityLevelPath
@Nonnull default java.util.Optional<StringPath> getSecurityLevelPath()
- Returns:
- an
Optionalcontaining the path to the current security level, or an empty Optional if this context is unable to supply the current security level path. Example:Authenticated/Foo/Bar
-
getSecurityLevelName
@Nonnull default java.util.Optional<java.lang.String> getSecurityLevelName()
- Returns:
- an
Optionalcontaining the name of the current security level, or an empty Optional if this context is unable to supply the current security level name. Example: if the path to the current security level isAuthenticated/Foo/Bar, the name returned would beBar
-
getSecurityZones
@Nonnull com.google.common.collect.ImmutableCollection<java.lang.String> getSecurityZones()
- Returns:
- an
ImmutableCollectionof security zones in the current context
-
getIdpAttributeSource
@Nonnull java.util.Optional<AttributeSource> getIdpAttributeSource()
- Returns:
- an
Optionalcontaining theAttributeSourcefrom the IdP or an empty Optional if the user has not yet federated from the IdP
-
getUser
@Nonnull java.util.Optional<WebAuthUser> getUser()
- Returns:
- the
WebAuthUsermapped from the IdP AttributeSource
-
-