Annotation Interface RoleValidator.Roles

Enclosing class:
RoleValidator

A definition of "roles allowed" for a specific subject type. If user/service is in any of the roles, access will be granted.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Array of roles allowed for this resource.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Subject type for this restriction, defaults to SubjectType.USER.
  • Element Details

    • value

      String[] value
      Array of roles allowed for this resource.
      Returns:
      roles allowed
    • subjectType

      SubjectType subjectType
      Subject type for this restriction, defaults to SubjectType.USER.
      Returns:
      subject type
      Default:
      USER