public class Utils
extends java.lang.Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getNodeProperty(org.w3c.dom.Node node,
java.lang.String propertyName)
Retrieves the specified property of the Node, and returns its String
value
|
static org.w3c.dom.Node |
getSecurityElement(javax.xml.soap.SOAPHeader header)
Finds the Security element from the header.
|
static javax.xml.soap.SOAPHeader |
getSOAPHeader(javax.xml.ws.handler.soap.SOAPMessageContext smc)
Returns the header.
|
static boolean |
isHoKToken(org.w3c.dom.Node token)
Performs an elementary test to check if the Node possibly represents a
Holder-Of-Key SAML token.
|
static boolean |
isOutgoingMessage(javax.xml.ws.handler.soap.SOAPMessageContext smc)
Returns true if the
SOAPMessageContext is part of the request |
static boolean |
isSamlToken(org.w3c.dom.Node token)
Performs an elementary test to check if the Node possibly represents a
SAML token.
|
static <T> org.w3c.dom.Document |
marshallJaxbElement(javax.xml.bind.JAXBElement<T> jaxbElement)
Marshall a jaxbElement into a Document
|
static void |
printMessage(javax.xml.ws.handler.soap.SOAPMessageContext smc)
Prints the SOAP Message on the console
|
static void |
printToken(org.w3c.dom.Element token)
Prints some basic information about the SAML token on the console
|
static void |
trustAllHttpsCertificates()
Method to trust all the HTTPS certificates.
|
public static java.lang.String getNodeProperty(org.w3c.dom.Node node,
java.lang.String propertyName)
node - propertyName - public static org.w3c.dom.Node getSecurityElement(javax.xml.soap.SOAPHeader header)
header - public static javax.xml.soap.SOAPHeader getSOAPHeader(javax.xml.ws.handler.soap.SOAPMessageContext smc)
throws javax.xml.soap.SOAPException
smc - javax.xml.soap.SOAPExceptionpublic static boolean isHoKToken(org.w3c.dom.Node token)
token - public static boolean isOutgoingMessage(javax.xml.ws.handler.soap.SOAPMessageContext smc)
SOAPMessageContext is part of the requestsmc - public static boolean isSamlToken(org.w3c.dom.Node token)
token - public static final <T> org.w3c.dom.Document marshallJaxbElement(javax.xml.bind.JAXBElement<T> jaxbElement)
jaxbElement - public static void printMessage(javax.xml.ws.handler.soap.SOAPMessageContext smc)
smc - public static void printToken(org.w3c.dom.Element token)
token - public static void trustAllHttpsCertificates()