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

com.nimbusds.jwt.proc.JWTProcessorConfiguration Maven / Gradle / Ivy

Go to download

Java library for Javascript Object Signing and Encryption (JOSE) and JSON Web Tokens (JWT)

There is a newer version: [ version ]
Show newest version
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 set verifier. Ensures that the claims set of a * JWT complies with an application's requirements. *
* * @author Vladimir Dzhuvinov * @version 2016-07-25 */ public interface JWTProcessorConfiguration extends JOSEProcessorConfiguration { /** * Gets the optional JWT claims set verifier. Ensures that the claims * set of a JWT complies with an application's requirements. * * @return The JWT claims set verifier, {@code null} if not specified. */ JWTClaimsSetVerifier getJWTClaimsSetVerifier(); /** * Sets the optional JWT claims set verifier. Ensures that the claims * set of a JWT complies with an application's requirements. * * @param claimsVerifier The JWT claims set verifier, {@code null} if * not specified. */ void setJWTClaimsSetVerifier(final JWTClaimsSetVerifier claimsVerifier); /** * Use {@link #getJWTClaimsVerifier()} instead. */ @Deprecated JWTClaimsVerifier getJWTClaimsVerifier(); /** * Use {@link #setJWTClaimsSetVerifier} instead. */ @Deprecated void setJWTClaimsVerifier(final JWTClaimsVerifier claimsVerifier); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy