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

be.looorent.micronaut.security.PublicKeyService Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package be.looorent.micronaut.security;

import java.security.PublicKey;
import java.util.Optional;

/**
 * How to find a public key to validate a JWT?
 * @author Lorent Lempereur - [email protected]
 */
public interface PublicKeyService {

    /**
     * This method finds a public key identified by an identifier, generally stored in a JWT header.
     * @param kid a key id
     * @return the public key identified by kid ; or return empty() is the public key has not been found.
     */
    Optional findPublicKey(String kid);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy