com.sun.xml.wss.impl.filter
Class EncryptionFilter

java.lang.Object
  extended by com.sun.xml.wss.impl.filter.EncryptionFilter

public class EncryptionFilter
extends Object

Performs encryption or decryption Message ANNOTATION is performed as follows: if (complete policy resolution should happen) make DynamicPolicyCallback else // assumes feature binding component is statically specified - // including targets and canonicalization algorithm if (X509CertificateBinding) resolve certificate - make EncryptionKeyCallback else if (SymmetricKeyBinding) resolve symmetrick key - make SymmetricKeyCallback else throw Exception call EncryptionProcessor Message (decryption) VALIDATION is performed as follows: if (ADHOC processing mode) if (complete policy resolution should happen) make DynamicPolicyCallback call DecryptionProcessor else if (POSTHOC or DEFAULT mode) call DecryptionProcessor


Field Summary
protected static Logger log
           
 
Constructor Summary
EncryptionFilter()
           
 
Method Summary
static AuthenticationTokenPolicy.UsernameTokenBinding createUntBinding(FilterProcessingContext context, AuthenticationTokenPolicy.UsernameTokenBinding untBinding)
          sets the username token in UsernameToken Binding, creates secret key for encryption and sets it in username token binding
static void process(FilterProcessingContext context)
          creates the correct key for each binding type and sets the binding in the context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final Logger log
Constructor Detail

EncryptionFilter

public EncryptionFilter()
Method Detail

createUntBinding

public static AuthenticationTokenPolicy.UsernameTokenBinding createUntBinding(FilterProcessingContext context,
                                                                              AuthenticationTokenPolicy.UsernameTokenBinding untBinding)
                                                                       throws XWSSecurityException
sets the username token in UsernameToken Binding, creates secret key for encryption and sets it in username token binding

Parameters:
context - FilterProcessingContext
untBinding - UsernameTokenBinding
Returns:
binding UsernameTokenBinding
Throws:
XWSSecurityException

process

public static void process(FilterProcessingContext context)
                    throws XWSSecurityException
creates the correct key for each binding type and sets the binding in the context

Parameters:
context - FilterProcessingContext
Throws:
XWSSecurityException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.