interfaces/KeyProvider.java

java-jwt · lib/src/main/java/com/auth0/jwt/interfaces/KeyProvider.java · java · MIT
auth

Provides keys for JWT signing and verification using public/private key pairs

// Source: https://github.com/auth0/java-jwt | License: MIT | Copyright 2015 Auth0, Inc. <support@auth0.com> (http://auth0.com)
// Provided via justclaw.it.com; keep this notice with the code.
package com.auth0.jwt.interfaces;

import java.security.PrivateKey;
import java.security.PublicKey;

/**
 * Generic Public/Private Key provider.
 * While implementing, ensure the Private Key and Private Key ID doesn't change in between signing a token.
 *
 * @param <U> the class that represents the Public Key
 * @param <R> the class that represents the Private Key
 */
interface KeyProvider<U extends PublicKey, R extends PrivateKey> {

    /**
     * Getter for the Public Key instance with the given Id. Used to verify the signature on the JWT verification stage.
     *
     * @param keyId the Key Id s

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key