com.nimbusds.jose
Interface JWEHeaderFilter

All Superinterfaces:
HeaderFilter

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
 java.util.Set<JWEAlgorithm> getAcceptedAlgorithms()
          Gets the names of the accepted JWE algorithms.
 java.util.Set<EncryptionMethod> getAcceptedEncryptionMethods()
          Gets the names of the accepted encryption methods.
 void setAcceptedAlgorithms(java.util.Set<JWEAlgorithm> acceptedAlgs)
          Sets the names of the accepted JWE algorithms.
 void setAcceptedEncryptionMethods(java.util.Set<EncryptionMethod> acceptedEncs)
          Sets the names of the accepted encryption methods.
 
Methods inherited from interface com.nimbusds.jose.HeaderFilter
getAcceptedParameters
 

Method Detail

getAcceptedAlgorithms

java.util.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(java.util.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

java.util.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(java.util.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.