Package com.sun.xml.wss.impl.filter
Class SignatureFilter
- java.lang.Object
-
- com.sun.xml.wss.impl.filter.SignatureFilter
-
public class SignatureFilter extends Object
Performs signature or verifies signature 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 SignatureKeyCallback if (X509CertificateBinding has associated SymmetricKeyBinding) resolve symmetric key - make SymmetricKeyCallback else if (X509CertificateBinding has no associated bindings || X509CertificateBinding has associated PrivateKeyBinding) create PrivateKeyBinding if req'd with private key associated with the certificate else throw Exception else throw Exception call SignatureProcessor Message (signature verification) VALIDATION is performed as follows: if (ADHOC processing mode) if (complete policy resolution should happen) make DynamicPolicyCallback call VerificationProcessor else if (POSTHOC or DEFAULT mode) call VerificationProcessor
-
-
Constructor Summary
Constructors Constructor Description SignatureFilter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AuthenticationTokenPolicy.UsernameTokenBindingcreateUntBinding(FilterProcessingContext context, AuthenticationTokenPolicy.UsernameTokenBinding untBinding, int firstByte)sets the username token in UsernameToken Binding, creates secret key for signature and sets it in username token bindingstatic voidprocess(FilterProcessingContext context)creates the suitable key for each binding type and sets the binding in the context
-
-
-
Method Detail
-
createUntBinding
public static AuthenticationTokenPolicy.UsernameTokenBinding createUntBinding(FilterProcessingContext context, AuthenticationTokenPolicy.UsernameTokenBinding untBinding, int firstByte) throws XWSSecurityException
sets the username token in UsernameToken Binding, creates secret key for signature and sets it in username token binding- Parameters:
context- FilterProcessingContextuntBinding- UsernameTokenBindingfirstByte- int- Returns:
- binding UsernameTokenBinding
- Throws:
XWSSecurityException
-
process
public static void process(FilterProcessingContext context) throws XWSSecurityException
creates the suitable key for each binding type and sets the binding in the context- Parameters:
context- FilterProcessingContext- Throws:
XWSSecurityException
-
-