Interface RoleCheckPolicy

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean checkRole​(java.lang.String roleName, java.security.Principal runAsRole, java.security.acl.Group roles)
      Check if a role is either a runAsRole or in a set of roles
    • Method Detail

      • checkRole

        boolean checkRole​(java.lang.String roleName,
                          java.security.Principal runAsRole,
                          java.security.acl.Group roles)
        Check if a role is either a runAsRole or in a set of roles
        Parameters:
        roleName - the role to check
        runAsRole - a pushed role (can be null)
        roles - a Group whose Principals are role names
        Returns:
        true if role equals runAsRole or is a member of roles.