All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openfact.keys.PublicKeyStorageProvider Maven / Gradle / Ivy

The newest version!
package org.openfact.keys;

import java.security.PublicKey;

public interface PublicKeyStorageProvider {


    /**
     * Get public key to verify messages signed by particular client. Used for example during JWT client authentication
     *
     * @param modelKey
     * @param kid
     * @param loader
     * @return
     */
    PublicKey getPublicKey(String modelKey, String kid, PublicKeyLoader loader);

    /**
     * Clears all the cached public keys, so they need to be loaded again
     */
    void clearCache();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy