be.looorent.micronaut.security.PublicKeyService Maven / Gradle / Ivy
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 - 2025 Weber Informatics LLC | Privacy Policy