org.apache.abdera.security.util.filters
Class DHEncryptedRequestFilter

java.lang.Object
  extended by org.apache.abdera.security.util.filters.AbstractEncryptedRequestFilter
      extended by org.apache.abdera.security.util.filters.DHEncryptedRequestFilter
All Implemented Interfaces:
Filter

public class DHEncryptedRequestFilter
extends AbstractEncryptedRequestFilter

A filter implementation that allows requests to be encrypted using Diffie-Hellman key negotiation. A client first uses GET/HEAD/OPTIONS to get the servers DH information, then sends an encrypted request containing it's DH information. The server can then decrypt and process the request. Note: this is currently untested.


Field Summary
 
Fields inherited from class org.apache.abdera.security.util.filters.AbstractEncryptedRequestFilter
methods
 
Constructor Summary
DHEncryptedRequestFilter()
           
DHEncryptedRequestFilter(String... methods)
           
 
Method Summary
 void bootstrap(RequestContext request)
           
 ResponseContext filter(RequestContext request, FilterChain chain)
          Process the filter request.
protected  Object initArg(RequestContext request)
           
protected  EncryptionOptions initEncryptionOptions(RequestContext request, Encryption encryption, Object arg)
           
 
Methods inherited from class org.apache.abdera.security.util.filters.AbstractEncryptedRequestFilter
addProvider, initProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DHEncryptedRequestFilter

public DHEncryptedRequestFilter()

DHEncryptedRequestFilter

public DHEncryptedRequestFilter(String... methods)
Method Detail

bootstrap

public void bootstrap(RequestContext request)
Specified by:
bootstrap in class AbstractEncryptedRequestFilter

filter

public ResponseContext filter(RequestContext request,
                              FilterChain chain)
Description copied from interface: Filter
Process the filter request. The filter must call chain.next(request) to pass the request on to the next filter or the provider.

Specified by:
filter in interface Filter
Overrides:
filter in class AbstractEncryptedRequestFilter

initArg

protected Object initArg(RequestContext request)
Specified by:
initArg in class AbstractEncryptedRequestFilter

initEncryptionOptions

protected EncryptionOptions initEncryptionOptions(RequestContext request,
                                                  Encryption encryption,
                                                  Object arg)
Specified by:
initEncryptionOptions in class AbstractEncryptedRequestFilter


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.