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

com.nimbusds.jose.proc.JOSEProcessorConfiguration 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: 9.48
Show newest version
package com.nimbusds.jose.proc;


/**
 * JOSE processor configuration.
 *
 * 

Specifies the required components to process secured JOSE objects: * *

    *
  • To verify JWS objects: *
      *
    • 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. *
    *
  • To decrypt JWT objects: *
      *
    • 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. *
    *
* * @author Vladimir Dzhuvinov * @version 2015-08-22 */ public interface JOSEProcessorConfiguration { /** * Gets the JWS key selector. * * @return The JWS key selector, {@code null} if not specified. */ JWSKeySelector getJWSKeySelector(); /** * Sets the JWS key selector. * * @param jwsKeySelector The JWS key selector, {@code null} if not * specified. */ void setJWSKeySelector(final JWSKeySelector jwsKeySelector); /** * Gets the JWE key selector. * * @return The JWE key selector, {@code null} if not specified. */ JWEKeySelector getJWEKeySelector(); /** * Sets the JWE key selector. * * @param jweKeySelector The JWE key selector, {@code null} if not * specified. */ void setJWEKeySelector(final JWEKeySelector jweKeySelector); /** * Gets the factory for creating JWS verifier instances. * * @return The JWS verifier factory, {@code null} if not specified. */ JWSVerifierFactory getJWSVerifierFactory(); /** * Sets the factory for creating JWS verifier instances. * * @param factory The JWS verifier factory, {@code null} if not * specified. */ void setJWSVerifierFactory(final JWSVerifierFactory factory); /** * Gets the factory for creating JWE decrypter instances. * * @return The JWE decrypter factory, {@code null} if not specified. */ JWEDecrypterFactory getJWEDecrypterFactory(); /** * Sets the factory for creating JWE decrypter instances. * * @param factory The JWE decrypter factory, {@code null} if not * specified. */ void setJWEDecrypterFactory(final JWEDecrypterFactory factory); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy