Class Claims

    • Constructor Detail

      • Claims

        protected Claims()
    • Method Detail

      • containsClaim

        public boolean containsClaim​(String name)
      • base64Encoded

        public String base64Encoded()
      • getClaim

        public <T> T getClaim​(String name,
                              Class<T> type)
        Get a claim by name and cast it to a specific type
        Type Parameters:
        T - type of the claim
        Parameters:
        name - of the claim
        type - of the claim
        Returns:
        claim value cast to specified type
      • addClaim

        public void addClaim​(String name,
                             Object value)