org.openfact.keys.KeyProvider Maven / Gradle / Ivy
The newest version!
package org.openfact.keys;
import org.openfact.jose.jws.AlgorithmType;
import java.util.List;
public interface KeyProvider {
/**
* Returns the algorithm type the keys can be used for
*
* @return
*/
AlgorithmType getType();
/**
* Return the KID for the active keypair, or null
if no active key is available.
*
* @return
*/
String getKid();
/**
* Return metadata about all keypairs held by the provider
*
* @return
*/
List getKeyMetadata();
}