Examples of EmptyTokenOrReference


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

    protected Element createTokenOrReferenceElement(String enclosingTagName, SecurityTokenOrReference token) throws TrustException {
        Element element = doc.createElementNS(TrustConstants.WST_NS, enclosingTagName);
        Element tokenElement = token.getElement();
        if (tokenElement == null)
            throw new EmptyTokenOrReference("SecurityTokenOrReference specified does not contain " +
                    "a security token element or reference element.");
        element.appendChild(tokenElement);
        return element;
    }
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.