com.nimbusds.jose
Interface JWSHeaderFilter

All Superinterfaces:
HeaderFilter
All Known Implementing Classes:
DefaultJWSHeaderFilter

public interface JWSHeaderFilter
extends HeaderFilter

JSON Web Signature (JWS) header filter. Specifies accepted JWS algorithms and header parameters.

Version:
$version$ (2012-10-04)
Author:
Vladimir Dzhuvinov

Method Summary
 Set<JWSAlgorithm> getAcceptedAlgorithms()
          Gets the names of the accepted JWS algorithms.
 void setAcceptedAlgorithms(Set<JWSAlgorithm> acceptedAlgs)
          Sets the names of the accepted JWS algorithms.
 
Methods inherited from interface com.nimbusds.jose.HeaderFilter
getAcceptedParameters, setAcceptedParameters
 

Method Detail

getAcceptedAlgorithms

Set<JWSAlgorithm> getAcceptedAlgorithms()
Gets the names of the accepted JWS algorithms. These correspond to the alg JWS header parameter.

Returns:
The accepted JWS algorithms, as a read-only set, empty set if none.

setAcceptedAlgorithms

void setAcceptedAlgorithms(Set<JWSAlgorithm> acceptedAlgs)
Sets the names of the accepted JWS algorithms. These correspond to the alg JWS header parameter.

Parameters:
acceptedAlgs - The accepted JWS algorithms. Must be a subset of the supported algorithms and not null.


Copyright © 2013 NimbusDS. All Rights Reserved.