Package org.apache.wss4j.dom.message.token

Examples of org.apache.wss4j.dom.message.token.X509Security


    private void addBST(X509Certificate[] certs) throws WSSecurityException {
        if (!useSingleCert) {
            bstToken = new PKIPathSecurity(document);
            ((PKIPathSecurity) bstToken).setX509Certificates(certs, crypto);
        } else {
            bstToken = new X509Security(document);
            ((X509Security) bstToken).setX509Certificate(certs[0]);
        }
        bstAddedToSecurityHeader = false;
        bstToken.setID(certUri);
        wsDocInfo.addTokenElement(bstToken.getElement(), false);
View Full Code Here


        case WSConstants.BST_DIRECT_REFERENCE:
            Reference ref = new Reference(document);
            String certUri = IDGenerator.generateID(null);
            ref.setURI("#" + certUri);
            bstToken = new X509Security(document);
            ((X509Security) bstToken).setX509Certificate(remoteCert);
            bstToken.setID(certUri);
            ref.setValueType(bstToken.getValueType());
            secToken.setReference(ref);
            break;
View Full Code Here

   
    /**
     * Add a BinarySecurityToken
     */
    private void addBST(X509Certificate cert) throws WSSecurityException {
        bstToken = new X509Security(document);
        ((X509Security) bstToken).setX509Certificate(cert);
       
        bstAddedToSecurityHeader = false;
        bstToken.setID(IDGenerator.generateID(null));
    }
View Full Code Here

TOP

Related Classes of org.apache.wss4j.dom.message.token.X509Security

Copyright © 2018 www.massapicom. 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.