Examples of ElementParsingException


Examples of org.apache.ws.sandbox.security.trust2.exception.ElementParsingException

                this.usernameToken = new UsernameToken(wssConfig, element);
            if (el.equals(BinarySecurity.TOKEN))
                this.binarySecurityToken = new BinarySecurity(wssConfig, element);
            doc = element.getOwnerDocument();
        } catch (WSSecurityException e) {
            throw new ElementParsingException("WSSecurityException while trying to create a SecurityTokenOrReference object from an XML Element: "
                    + e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust2.exception.ElementParsingException

                        if (el.equals(UsernameToken.TOKEN))
                            return new UsernameToken(wssConfig, tokenElement);
                        if (el.equals(BinarySecurity.TOKEN))
                            return new BinarySecurity(wssConfig, tokenElement);
                    } catch (WSSecurityException e) {
                        throw new ElementParsingException("WSSecurityException while trying to create a SecurityToken object from a SecurityTokenReference: "
                                + e.getMessage());
                    }
                }
            } catch (WSSecurityException e) {
                throw new InvalidSecurityTokenReference("WSSecurityException while trying to dereference a <SecurityTokenReference>: " + e.getMessage());
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust2.exception.ElementParsingException

                this.usernameToken = new UsernameToken(element);
            if (el.equals(BinarySecurity.TOKEN_BST))
                this.binarySecurityToken = new BinarySecurity(element);
            doc = element.getOwnerDocument();
        } catch (WSSecurityException e) {
            throw new ElementParsingException("WSSecurityException while trying to create a SecurityTokenOrReference object from an XML Element: "
                    + e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust2.exception.ElementParsingException

                        if (el.equals(UsernameToken.TOKEN))
                            return new UsernameToken(tokenElement);
                        if (el.equals(BinarySecurity.TOKEN_BST))
                            return new BinarySecurity(tokenElement);
                    } catch (WSSecurityException e) {
                        throw new ElementParsingException("WSSecurityException while trying to create a SecurityToken object from a SecurityTokenReference: "
                                + e.getMessage());
                    }
                }
            } catch (WSSecurityException e) {
                throw new InvalidSecurityTokenReference("WSSecurityException while trying to dereference a <SecurityTokenReference>: " + e.getMessage());
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust2.exception.ElementParsingException

                            addCustomElement((Element) currentNode);
                    }
                }
            }
        } catch (URISyntaxException e) {
            throw new ElementParsingException("URISyntaxException while creating SecurityTokenMessage from XML element: " + e.getMessage());
        } catch (WSSecurityException e) {
            throw new ElementParsingException("WSSecurityException while creating SecurityTokenMessage from XML element: " + e.getMessage());
        }
    }
View Full Code Here

Examples of org.apache.ws.sandbox.security.trust2.exception.ElementParsingException

                String textContent = getTextContent(currentNode);
                if (textContent != null && !textContent.equals("")) {
                    try {
                        setRequestType(new URI(textContent));
                    } catch (URISyntaxException e) {
                        throw new ElementParsingException("URISyntaxException while creating RequestSecurityToken (RequestType) from XML Element: "
                                + e.getMessage());
                    }
                }
            } else if (currentNode.getLocalName().equals(TrustConstants.BASE)) {
                Element elem = getFirstNonBlankChildAsElement(currentNode);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.