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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SignatureFilter
public SignatureFilter()
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
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.