|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.xml.wss.impl.NewSecurityRecipient
public class NewSecurityRecipient
This class exports a static Security Service for Verifying/Validating Security in an Inbound SOAPMessage. The policy to be applied for Verifying the Message and the SOAPMessage itself are supplied in an instance of a com.sun.xml.wss.ProcessingContext
ProcessingContext| Constructor Summary | |
|---|---|
NewSecurityRecipient()
|
|
| Method Summary | |
|---|---|
static void |
handleFault(ProcessingContext context)
|
static void |
validateMessage(ProcessingContext context)
Validate security in an Inbound SOAPMessage. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NewSecurityRecipient()
| Method Detail |
|---|
public static void validateMessage(ProcessingContext context)
throws XWSSecurityException
Calling code should create com.sun.xml.wss.ProcessingContext object with runtime properties. Specifically, it should set SecurityPolicy, application CallbackHandler Or a SecurityEnvironment The SecurityPolicy instance can be of the following types:
context - an instance of com.sun.xml.wss.ProcessingContext
XWSSecurityException - if there was an unexpected error
while verifying the message. OR if the security in the incoming
message violates the Security policy that was applied to the message.
WssSoapFaultException - when security in the incoming message
is in direct violation of the OASIS WSS specification.
When a WssSoapFaultException is thrown the getFaultCode() method on the WssSoapFaultException
will return a QName which would correspond to the WSS defined fault.public static void handleFault(ProcessingContext context)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||