Class TokenKey

    • Constructor Detail

      • TokenKey

        public TokenKey()
    • Method Detail

      • kid

        public String kid()
        Get the kid property: JWT token key id. Validation keys are looked up based on the key id present on the JWT token header.
        Returns:
        the kid value.
      • withKid

        public TokenKey withKid​(String kid)
        Set the kid property: JWT token key id. Validation keys are looked up based on the key id present on the JWT token header.
        Parameters:
        kid - the kid value to set.
        Returns:
        the TokenKey object itself.
      • validate

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