Class HardcodedKeyLocator

    • Constructor Detail

      • HardcodedKeyLocator

        public HardcodedKeyLocator​(Key key)
      • HardcodedKeyLocator

        public HardcodedKeyLocator​(Collection<? extends Key> keys)
    • Method Detail

      • getKey

        public Key getKey​(String kid)
        Description copied from interface: KeyLocator
        Returns a key with a particular ID.
        Specified by:
        getKey in interface KeyLocator
        Parameters:
        kid - Key ID
        Returns:
        key, which should be used for verify signature on given "input"
      • refreshKeyCache

        public void refreshKeyCache()
        Description copied from interface: KeyLocator
        If this key locator caches keys in any way, forces this cache cleanup and refreshing the keys.
        Specified by:
        refreshKeyCache in interface KeyLocator