Class JwtClaimChecks


  • public final class JwtClaimChecks
    extends Object
    The configuration settings of the checks that should be made while validating the JWT Claims.
    • Constructor Detail

      • JwtClaimChecks

        public JwtClaimChecks()
    • Method Detail

      • allowedGroups

        public List<String> allowedGroups()
        Get the allowedGroups property: The list of the allowed groups.
        Returns:
        the allowedGroups value.
      • withAllowedGroups

        public JwtClaimChecks withAllowedGroups​(List<String> allowedGroups)
        Set the allowedGroups property: The list of the allowed groups.
        Parameters:
        allowedGroups - the allowedGroups value to set.
        Returns:
        the JwtClaimChecks object itself.
      • allowedClientApplications

        public List<String> allowedClientApplications()
        Get the allowedClientApplications property: The list of the allowed client applications.
        Returns:
        the allowedClientApplications value.
      • withAllowedClientApplications

        public JwtClaimChecks withAllowedClientApplications​(List<String> allowedClientApplications)
        Set the allowedClientApplications property: The list of the allowed client applications.
        Parameters:
        allowedClientApplications - the allowedClientApplications value to set.
        Returns:
        the JwtClaimChecks object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.