Package com.eviware.soapui.impl.wsdl.support.wss.crypto

Examples of com.eviware.soapui.impl.wsdl.support.wss.crypto.KeyMaterialWssCrypto


      return columnIndex > 1;
    }

    public Object getValueAt( int rowIndex, int columnIndex )
    {
      KeyMaterialWssCrypto crypto = ( KeyMaterialWssCrypto )cryptos.get( rowIndex );

      switch( columnIndex )
      {
      case 0 :
        return crypto.getSource();
      case 1 :
        return crypto.getStatus();
      case 2 :
        return crypto.getPassword();
      case 3 :
        return crypto.getDefaultAlias();
      case 4 :
        return crypto.getAliasPassword();
      case 5 :
        return StringUtils.hasContent( crypto.getCryptoProvider() ) ? crypto.getCryptoProvider() : DEFAULT_OPTION;
      }

      return null;
    }
View Full Code Here


    }

    @Override
    public void setValueAt( Object aValue, int rowIndex, int columnIndex )
    {
      KeyMaterialWssCrypto crypto = ( KeyMaterialWssCrypto )cryptos.get( rowIndex );
      if( aValue == null || aValue.equals( DEFAULT_OPTION ) )
        aValue = "";

      switch( columnIndex )
      {
      case 2 :
        crypto.setPassword( aValue.toString() );
        break;
      case 3 :
        crypto.setDefaultAlias( aValue.toString() );
        break;
      case 4 :
        crypto.setAliasPassword( aValue.toString() );
        break;
      case 5 :
        crypto.setCryptoProvider( aValue.toString() );
        break;
      }
    }
View Full Code Here

    this.modelItem = modelItem;
    this.config = config;

    for( KeyMaterialCryptoConfig cryptoConfig : config.getCryptoList() )
    {
      cryptos.add( new KeyMaterialWssCrypto( cryptoConfig, this ) );
    }

    for( IncomingWssConfig wssConfig : config.getIncomingList() )
    {
      incomingWssConfigs.add( new IncomingWss( wssConfig, this ) );
View Full Code Here

    return new ArrayList<WssCrypto>( cryptos );
  }

  public WssCrypto addCrypto( String source, String password )
  {
    KeyMaterialWssCrypto result = new KeyMaterialWssCrypto( getConfig().addNewCrypto(), this, source, password );
    cryptos.add( result );

    fireCryptoAdded( result );

    return result;
View Full Code Here

    public DefaultWssContainer(ModelItem modelItem, WssContainerConfig config) {
        this.modelItem = modelItem;
        this.config = config;

        for (KeyMaterialCryptoConfig cryptoConfig : config.getCryptoList()) {
            cryptos.add(new KeyMaterialWssCrypto(cryptoConfig, this));
        }

        for (IncomingWssConfig wssConfig : config.getIncomingList()) {
            incomingWssConfigs.add(new IncomingWss(wssConfig, this));
        }
View Full Code Here

    public List<WssCrypto> getCryptoList() {
        return new ArrayList<WssCrypto>(cryptos);
    }

    public WssCrypto addCrypto(String source, String password, CryptoType type) {
        KeyMaterialWssCrypto result = new KeyMaterialWssCrypto(getConfig().addNewCrypto(), this, source, password, type);
        cryptos.add(result);

        fireCryptoAdded(result);

        return result;
View Full Code Here

        public boolean isCellEditable(int rowIndex, int columnIndex) {
            return columnIndex > 1;
        }

        public Object getValueAt(int rowIndex, int columnIndex) {
            KeyMaterialWssCrypto crypto = (KeyMaterialWssCrypto) cryptos.get(rowIndex);

            switch (columnIndex) {
                case 0:
                    return crypto.getSource();
                case 1:
                    return crypto.getStatus();
                case 2:
                    return crypto.getPassword();
                case 3:
                    return crypto.getDefaultAlias();
                case 4:
                    return crypto.getAliasPassword();
                case 5:
                    return StringUtils.hasContent(crypto.getCryptoProvider()) ? crypto.getCryptoProvider() : DEFAULT_OPTION;
            }

            return null;
        }
View Full Code Here

            return cryptos.get(row);
        }

        @Override
        public void setValueAt(Object aValue, int rowIndex, int columnIndex) {
            KeyMaterialWssCrypto crypto = (KeyMaterialWssCrypto) cryptos.get(rowIndex);
            if (aValue == null || aValue.equals(DEFAULT_OPTION)) {
                aValue = "";
            }

            switch (columnIndex) {
                case 2:
                    crypto.setPassword(aValue.toString());
                    break;
                case 3:
                    crypto.setDefaultAlias(aValue.toString());
                    break;
                case 4:
                    crypto.setAliasPassword(aValue.toString());
                    break;
                case 5:
                    crypto.setCryptoProvider(aValue.toString());
                    break;
            }
        }
View Full Code Here

TOP

Related Classes of com.eviware.soapui.impl.wsdl.support.wss.crypto.KeyMaterialWssCrypto

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.