Class JSONWebKeys

    • Constructor Detail

      • JSONWebKeys

        public JSONWebKeys​(String defaultKeyID)
    • Method Detail

      • hasDefaultKey

        public boolean hasDefaultKey()
        test if a default key id has been set for this set.
        Returns:
      • getDefaultKeyID

        public String getDefaultKeyID()
        Get the default key id for this set.
        Returns:
      • setDefaultKeyID

        public void setDefaultKeyID​(String defaultKeyID)
      • put

        public void put​(JSONWebKey webKey)
        Add a key to this set. Since the hash is on the identifier, the key is checked for having one before being added and adding a key will fail if there is no identifier set.
        Parameters:
        webKey -