Examples of ClaimsCallback


Examples of org.apache.cxf.ws.security.trust.claims.ClaimsCallback

   
    protected void addClaims(XMLStreamWriter writer) throws Exception {
        if (claims != null) {
            StaxUtils.copy(claims, writer);
        } else if (claimsCallbackHandler != null) {
            ClaimsCallback callback = new ClaimsCallback(message);
            claimsCallbackHandler.handle(new Callback[]{callback});
            Element claimsElement = callback.getClaims();
            if (claimsElement != null) {
                StaxUtils.copy(claimsElement, writer);
            }
        }
    }
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.claims.ClaimsCallback

   
    protected void addClaims(XMLStreamWriter writer) throws Exception {
        if (claims != null) {
            StaxUtils.copy(claims, writer);
        } else if (claimsCallbackHandler != null) {
            ClaimsCallback callback = new ClaimsCallback(message);
            claimsCallbackHandler.handle(new Callback[]{callback});
            Element claimsElement = callback.getClaims();
            if (claimsElement != null) {
                StaxUtils.copy(claimsElement, writer);
            }
        }
    }
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.claims.ClaimsCallback

   
    protected void addClaims(XMLStreamWriter writer) throws Exception {
        if (claims != null) {
            StaxUtils.copy(claims, writer);
        } else if (claimsCallbackHandler != null) {
            ClaimsCallback callback = new ClaimsCallback(message);
            claimsCallbackHandler.handle(new Callback[]{callback});
            Element claimsElement = callback.getClaims();
            if (claimsElement != null) {
                StaxUtils.copy(claimsElement, writer);
            }
        }
    }
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.claims.ClaimsCallback

   
    protected void addClaims(XMLStreamWriter writer) throws Exception {
        if (claims != null) {
            StaxUtils.copy(claims, writer);
        } else if (claimsCallbackHandler != null) {
            ClaimsCallback callback = new ClaimsCallback(message);
            claimsCallbackHandler.handle(new Callback[]{callback});
            Element claimsElement = callback.getClaims();
            if (claimsElement != null) {
                StaxUtils.copy(claimsElement, writer);
            }
        }
    }
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.claims.ClaimsCallback

   
    protected void addClaims(XMLStreamWriter writer) throws Exception {
        if (claims != null) {
            StaxUtils.copy(claims, writer);
        } else if (claimsCallbackHandler != null) {
            ClaimsCallback callback = new ClaimsCallback(message);
            claimsCallbackHandler.handle(new Callback[]{callback});
            Element claimsElement = callback.getClaims();
            if (claimsElement != null) {
                StaxUtils.copy(claimsElement, writer);
            }
        }
    }
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.claims.ClaimsCallback

   
    protected void addClaims(XMLStreamWriter writer) throws Exception {
        if (claims != null) {
            StaxUtils.copy(claims, writer);
        } else if (claimsCallbackHandler != null) {
            ClaimsCallback callback = new ClaimsCallback(message);
            claimsCallbackHandler.handle(new Callback[]{callback});
            Element claimsElement = callback.getClaims();
            if (claimsElement != null) {
                StaxUtils.copy(claimsElement, writer);
            }
        }
    }
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.claims.ClaimsCallback

   
    public void handle(Callback[] callbacks)
        throws IOException, UnsupportedCallbackException {
        for (int i = 0; i < callbacks.length; i++) {
            if (callbacks[i] instanceof ClaimsCallback) {
                ClaimsCallback callback = (ClaimsCallback) callbacks[i];
                callback.setClaims(createClaims());
               
            } else {
                throw new UnsupportedCallbackException(callbacks[i], "Unrecognized Callback");
            }
        }
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.claims.ClaimsCallback

   
    protected void addClaims(XMLStreamWriter writer) throws Exception {
        if (claims != null) {
            StaxUtils.copy(claims, writer);
        } else if (claimsCallbackHandler != null) {
            ClaimsCallback callback = new ClaimsCallback(message);
            claimsCallbackHandler.handle(new Callback[]{callback});
            Element claimsElement = callback.getClaims();
            if (claimsElement != null) {
                StaxUtils.copy(claimsElement, writer);
            }
        }
    }
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.claims.ClaimsCallback

   
    protected void addClaims(XMLStreamWriter writer) throws Exception {
        if (claims != null) {
            StaxUtils.copy(claims, writer);
        } else if (claimsCallbackHandler != null) {
            ClaimsCallback callback = new ClaimsCallback(message);
            claimsCallbackHandler.handle(new Callback[]{callback});
            Element claimsElement = callback.getClaims();
            if (claimsElement != null) {
                StaxUtils.copy(claimsElement, writer);
            }
        }
    }
View Full Code Here

Examples of org.apache.cxf.ws.security.trust.claims.ClaimsCallback

    }
   
    protected void addClaims(XMLStreamWriter writer) throws Exception {
        Object claimsToSerialize = claims;
        if (claimsToSerialize == null && claimsCallbackHandler != null) {
            ClaimsCallback callback = new ClaimsCallback(message);
            claimsCallbackHandler.handle(new Callback[]{callback});
            claimsToSerialize = callback.getClaims();
        }
       
        if (claimsToSerialize instanceof Element) {
            StaxUtils.copy((Element)claimsToSerialize, writer);
        } else if (claimsToSerialize instanceof ClaimCollection) {
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.