Examples of BinarySecurityToken


Examples of org.jboss.ws.extensions.security.element.BinarySecurityToken

/*     */       }
/*     */
/* 109 */       Element element = (Element)input.getSubNode();
/* 110 */       SecurityTokenReference ref = new SecurityTokenReference(element);
/* 111 */       KeyResolver resolver = new KeyResolver(store);
/* 112 */       BinarySecurityToken token = resolver.resolve(ref);
/*     */
/* 115 */       element = token.getSTRTransformElement();
/*     */
/* 118 */       Element parameters = XMLUtils.selectNode(this._transformObject.getElement().getFirstChild(), "http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd", "TransformationParameters", 0);
/*     */
/* 120 */       if (parameters == null) {
/* 121 */         throw new TransformationException("wsse:TransformationParameters expected!");
View Full Code Here

Examples of org.opensaml.ws.wssecurity.BinarySecurityToken

*/
public class BinarySecurityTokenMarshaller extends EncodedStringMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        BinarySecurityToken token = (BinarySecurityToken) xmlObject;
        if (!DatatypeHelper.isEmpty(token.getValueType())) {
            domElement.setAttributeNS(null, BinarySecurityToken.ENCODING_TYPE_ATTRIB_NAME, token.getValueType());
        }
        super.marshallAttributes(xmlObject, domElement);
    }
View Full Code Here

Examples of org.opensaml.ws.wssecurity.BinarySecurityToken

*/
public class BinarySecurityTokenUnmarshaller extends EncodedStringUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        BinarySecurityToken token = (BinarySecurityToken) xmlObject;
        if (BinarySecurityToken.VALUE_TYPE_ATTRIB_NAME.equals(attribute.getLocalName())) {
            token.setValueType(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here

Examples of org.opensaml.ws.wssecurity.BinarySecurityToken

*/
public class BinarySecurityTokenMarshaller extends EncodedStringMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        BinarySecurityToken token = (BinarySecurityToken) xmlObject;
        if (!DatatypeHelper.isEmpty(token.getValueType())) {
            domElement.setAttributeNS(null, BinarySecurityToken.ENCODING_TYPE_ATTRIB_NAME, token.getValueType());
        }
        super.marshallAttributes(xmlObject, domElement);
    }
View Full Code Here

Examples of org.opensaml.ws.wssecurity.BinarySecurityToken

*/
public class BinarySecurityTokenUnmarshaller extends EncodedStringUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        BinarySecurityToken token = (BinarySecurityToken) xmlObject;
        if (BinarySecurityToken.VALUE_TYPE_ATTRIB_NAME.equals(attribute.getLocalName())) {
            token.setValueType(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
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.