com.nimbusds.jwt.proc.JWTProcessorConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nimbus-jose-jwt Show documentation
Show all versions of nimbus-jose-jwt Show documentation
Java library for Javascript Object Signing and Encryption (JOSE) and
JSON Web Tokens (JWT)
package com.nimbusds.jwt.proc;
import com.nimbusds.jose.crypto.factories.DefaultJWEDecrypterFactory;
import com.nimbusds.jose.crypto.factories.DefaultJWSVerifierFactory;
import com.nimbusds.jose.proc.JOSEProcessorConfiguration;
import com.nimbusds.jose.proc.SecurityContext;
/**
* JWT processor configuration.
*
* Specifies the required components to process JWTs:
*
*
* - To verify signed JWTs:
*
* - Key selector to determine key candidate(s) for JWS
* verification based on the JWS header and application-
* specific context information.
*
- Factory to construct a JWS verifier for a given key
* candidate and JWS header information. A
* {@link DefaultJWSVerifierFactory default factory}
* implementation is provided.
*
* - To decrypt encrypted JWTs:
*
* - Key selector to determine key candidate(s) for JWE
* decryption based on the JWS header and application-specific
* context information.
*
- Factory to construct a JWE decrypter for a given key
* candidate and JWE header information. A
* {@link DefaultJWEDecrypterFactory default factory}
* implementation is provided.
*
* - Optional JWT claims verifier. Intended to perform various
* application-specific JWT claims checks, such as token expiration
* and issuer acceptance, after successful JWS verification / JWE
* decryption.
*
*
* @author Vladimir Dzhuvinov
* @version 2015-08-22
*/
public interface JWTProcessorConfiguration extends JOSEProcessorConfiguration {
/**
* Gets the optional JWT claims verifier. Intended to perform various
* application-specific JWT claims checks, such as token expiration and
* issuer acceptance, after successful JWS verification / JWE decryption.
*
* @return The JWT claims verifier, {@code null} if not specified.
*/
JWTClaimsVerifier getJWTClaimsVerifier();
/**
* Sets the optional JWT claims verifier. Intended to perform various
* application-specific JWT claims checks, such as token expiration and
* issuer acceptance, after successful JWS verification / JWE
* decryption.
*
* @param claimsVerifier The JWT claims verifier, {@code null} if not
* specified.
*/
void setJWTClaimsVerifier(final JWTClaimsVerifier claimsVerifier);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy