com.nimbusds.jose
Interface JWEHeaderFilter

All Superinterfaces:
HeaderFilter
All Known Implementing Classes:
DefaultJWEHeaderFilter

public interface JWEHeaderFilter
extends HeaderFilter

JSON Web Encryption (JWE) header filter. Specifies accepted JWE algorithms, encryption methods, and header parameters.

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

Method Summary
 Set<JWEAlgorithm> getAcceptedAlgorithms()
          Gets the names of the accepted JWE algorithms.
 Set<EncryptionMethod> getAcceptedEncryptionMethods()
          Gets the names of the accepted encryption methods.
 void setAcceptedAlgorithms(Set<JWEAlgorithm> acceptedAlgs)
          Sets the names of the accepted JWE algorithms.
 void setAcceptedEncryptionMethods(Set<EncryptionMethod> acceptedEncs)
          Sets the names of the accepted encryption methods.
 
Methods inherited from interface com.nimbusds.jose.HeaderFilter
getAcceptedParameters, setAcceptedParameters
 

Method Detail

getAcceptedAlgorithms

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

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

setAcceptedAlgorithms

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

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

getAcceptedEncryptionMethods

Set<EncryptionMethod> getAcceptedEncryptionMethods()
Gets the names of the accepted encryption methods. These correspond to the enc JWE header parameter.

Returns:
The accepted encryption methods, as a read-only set, empty set if none.

setAcceptedEncryptionMethods

void setAcceptedEncryptionMethods(Set<EncryptionMethod> acceptedEncs)
Sets the names of the accepted encryption methods. These correspond to the enc JWE header parameter.

Parameters:
acceptedEncs - The accepted encryption methods. Must be a subset of the supported encryption methods and not null.


Copyright © 2013 NimbusDS. All Rights Reserved.