Interface SecurityLevelPolicyEvaluationContext


public interface SecurityLevelPolicyEvaluationContext
Context in which a security level policy is evaluated
  • Method Details

    • getSecurityLevelPath

      @Nonnull default Optional<StringPath> getSecurityLevelPath()
      Returns:
      an Optional containing 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 Optional<String> getSecurityLevelName()
      Returns:
      an Optional containing 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 is Authenticated/Foo/Bar, the name returned would be Bar
    • getSecurityZones

      @Nonnull com.google.common.collect.ImmutableCollection<String> getSecurityZones()
      Returns:
      an ImmutableCollection of security zones in the current context
    • getIdpAttributeSource

      @Nonnull Optional<AttributeSource> getIdpAttributeSource()
      Returns:
      an Optional containing the AttributeSource from the IdP or an empty Optional if the user has not yet federated from the IdP
    • getUser

      @Nonnull Optional<WebAuthUser> getUser()
      Returns:
      the WebAuthUser mapped from the IdP AttributeSource