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

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

There is a newer version: 1.1.3.Final
Show 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();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy