001package com.nimbusds.jose;
002
003
004import java.util.Set;
005
006
007/**
008 * Common interface for JSON Web Signature (JWS) {@link JWSSigner signers} and
009 * {@link JWSVerifier verifiers}.
010 *
011 * <p>Callers can query the JWS provider to determine its algorithm 
012 * capabilities.
013 *
014 * @author  Vladimir Dzhuvinov
015 * @version $version$ (2014-04-20)
016 */
017public interface JWSAlgorithmProvider extends AlgorithmProvider {
018
019
020        /**
021         * Returns the names of the supported JWS algorithms. These correspond 
022         * to the {@code alg} JWS header parameter.
023         *
024         * @return The supported JWS algorithms, empty set if none.
025         */
026        public Set<JWSAlgorithm> supportedAlgorithms();
027}