Examples of addKeyName()


Examples of com.cloud.bridge.service.core.ec2.EC2DescribeKeyPairs.addKeyName()

    DescribeKeyPairsInfoType kset = describeKeyPairs.getDescribeKeyPairs().getKeySet();
    if (kset != null) {
      DescribeKeyPairsItemType[] keyPairKeys = kset.getItem();
      if (keyPairKeys != null) {
        for (DescribeKeyPairsItemType key : keyPairKeys) {
          ec2Request.addKeyName(key.getKeyName());
        }
      }
    }
   
    // multiple filters may be provided
View Full Code Here

Examples of com.cloud.bridge.service.core.ec2.EC2DescribeKeyPairs.addKeyName()

        while( names.hasMoreElements()) {
            String key = (String)names.nextElement();
            if ( key.startsWith("KeyName")) {
                String[] value = request.getParameterValues( key);
                if (null != value && 0 < value.length)
                    ec2Request.addKeyName( value[0]);
            }
        }

        EC2Filter[] filterSet = extractFilters( request );
        if (null != filterSet){
View Full Code Here

Examples of com.cloud.bridge.service.core.ec2.EC2DescribeKeyPairs.addKeyName()

        while (names.hasMoreElements()) {
            String key = (String)names.nextElement();
            if (key.startsWith("KeyName")) {
                String[] value = request.getParameterValues(key);
                if (null != value && 0 < value.length)
                    ec2Request.addKeyName(value[0]);
            }
        }

        EC2Filter[] filterSet = extractFilters(request);
        if (null != filterSet) {
View Full Code Here

Examples of com.cloud.bridge.service.core.ec2.EC2DescribeKeyPairs.addKeyName()

     
     
        String[] keyNames = request.getParameterValues( "KeyName" );
        if (keyNames != null) {
          for (String keyName : keyNames) {
            ec2Request.addKeyName(keyName);
          }
        }
      EC2Filter[] filterSet = extractFilters( request );
        if (null != filterSet){
          EC2KeyPairFilterSet vfs = new EC2KeyPairFilterSet();
View Full Code Here

Examples of com.cloud.bridge.service.core.ec2.EC2DescribeKeyPairs.addKeyName()

    DescribeKeyPairsInfoType kset = describeKeyPairs.getDescribeKeyPairs().getKeySet();
    if (kset != null) {
      DescribeKeyPairsItemType[] keyPairKeys = kset.getItem();
      if (keyPairKeys != null) {
        for (DescribeKeyPairsItemType key : keyPairKeys) {
          ec2Request.addKeyName(key.getKeyName());
        }
      }
    }
   
    // multiple filters may be provided
View Full Code Here

Examples of com.sun.xml.wss.core.KeyInfoHeaderBlock.addKeyName()

                    keyInfoBlock.addSecurityTokenReference(samlTokenRef);
                } else if(_x509Cert != null){
                    keyInfoStrategy.insertKey(keyInfoBlock, secureMsg, x509TokenId);
                }else if(keyEncSK != null){
                    //keyInfoStrategy.insertKey(keyInfoBlock, secureMsg,null);
                    keyInfoBlock.addKeyName(symmetricKeyName);
                }
                KeyInfo keyInfo = keyInfoBlock.getKeyInfo(); /*new KeyInfo(keyInfoBlock.getAsSoapElement(), null); */
                _encryptedKey.setKeyInfo(keyInfo);
               
            } catch (Exception xe) {
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.addKeyName()

        }

        KeyInfo keyInfo = null;
        if (this.keyIdentifierType == WSConstants.EMBEDDED_KEYNAME) {
            keyInfo = new KeyInfo(doc);
            keyInfo
                    .addKeyName(embeddedKeyName == null ? user
                            : embeddedKeyName);
        } else if (this.keyIdentifierType == WSConstants.EMBED_SECURITY_TOKEN_REF) {
            /*
             * This means that we want to embed a <wsse:SecurityTokenReference>
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.addKeyName()

        }

        KeyInfo keyInfo = null;
        if (this.keyIdentifierType == WSConstants.EMBEDDED_KEYNAME) {
            keyInfo = new KeyInfo(doc);
            keyInfo.addKeyName(embeddedKeyName == null ? user : embeddedKeyName);
        } else if (this.keyIdentifierType == WSConstants.EMBED_SECURITY_TOKEN_REF) {
            /* This means that we want to embed a <wsse:SecurityTokenReference>
            * into keyInfo element.
            * If we need this functionality, this.secRef MUST be set before
            * calling the build(doc, crypto) method.
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.addKeyName()

        }

        KeyInfo keyInfo = null;
        if (this.keyIdentifierType == WSConstants.EMBEDDED_KEYNAME) {
            keyInfo = new KeyInfo(doc);
            keyInfo
                    .addKeyName(embeddedKeyName == null ? user
                            : embeddedKeyName);
        } else if (this.keyIdentifierType == WSConstants.EMBED_SECURITY_TOKEN_REF) {
            /*
             * This means that we want to embed a <wsse:SecurityTokenReference>
View Full Code Here

Examples of org.apache.xml.security.keys.KeyInfo.addKeyName()

        XMLCipher dataCipher = XMLCipher.getInstance(XMLCipher.TRIPLEDES);
        dataCipher.init(XMLCipher.ENCRYPT_MODE, secretKey);

        KeyInfo keyInfo = new KeyInfo(doc);
        keyInfo.addKeyName("mykey");

        EncryptedData encryptedData = dataCipher.getEncryptedData();
        encryptedData.setKeyInfo(keyInfo);
       
        for (int i = 0; i < dataToEncrypt.getLength(); i++) {
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.