com.nimbusds.jose
Class DefaultHeaderFilter

java.lang.Object
  extended by com.nimbusds.jose.DefaultHeaderFilter
All Implemented Interfaces:
HeaderFilter
Direct Known Subclasses:
DefaultJWEHeaderFilter, DefaultJWSHeaderFilter

@ThreadSafe
public class DefaultHeaderFilter
extends Object
implements HeaderFilter

Javascript Object Signing and Encryption (JOSE) header filter implementation. This class is thread-safe.

Version:
$version$ (2013-03-22)
Author:
Vladimir Dzhuvinov

Constructor Summary
DefaultHeaderFilter(Set<String> acceptedParams)
          Creates a new JOSE header filter.
 
Method Summary
 Set<String> getAcceptedParameters()
          Gets the names of the accepted header parameters.
 void setAcceptedParameters(Set<String> acceptedParams)
          Sets the names of the accepted header parameters.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultHeaderFilter

public DefaultHeaderFilter(Set<String> acceptedParams)
Creates a new JOSE header filter.

Parameters:
acceptedParams - The accepted header parameters. Must not be null.
Method Detail

getAcceptedParameters

public Set<String> getAcceptedParameters()
Description copied from interface: HeaderFilter
Gets the names of the accepted header parameters.

Specified by:
getAcceptedParameters in interface HeaderFilter
Returns:
The accepted header parameters, as a read-only set. Must contain at least the alg parameter for JWS headers or the alg and enc parameters for JWE headers.

setAcceptedParameters

public void setAcceptedParameters(Set<String> acceptedParams)
Description copied from interface: HeaderFilter
Sets the names of the accepted header parameters.

Specified by:
setAcceptedParameters in interface HeaderFilter
Parameters:
acceptedParams - The accepted header parameters. Must contain at least the alg parameter for JWS headers or the alg and enc parameters for JWE headers. Must not be null.


Copyright © 2013 NimbusDS. All Rights Reserved.