Examples of encryptAndBase64Encode()


Examples of org.wso2.carbon.core.util.CryptoUtil.encryptAndBase64Encode()

      keyStore.getKey(pvtKeyAlias, pvtkeyPass.toCharArray());

      CryptoUtil cryptoUtil = CryptoUtil.getDefaultCryptoUtil();

      Resource resource = registry.newResource();
      resource.addProperty(SecurityConstants.PROP_PASSWORD, cryptoUtil
          .encryptAndBase64Encode(password.getBytes()));
      resource.addProperty(SecurityConstants.PROP_PROVIDER, provider);
      resource.addProperty(SecurityConstants.PROP_TYPE, type);

      if (pvtKeyAlias != null) {
View Full Code Here

Examples of org.wso2.carbon.core.util.CryptoUtil.encryptAndBase64Encode()

      resource.addProperty(SecurityConstants.PROP_PROVIDER, provider);
      resource.addProperty(SecurityConstants.PROP_TYPE, type);

      if (pvtKeyAlias != null) {
        resource.addProperty(SecurityConstants.PROP_PRIVATE_KEY_ALIAS, pvtKeyAlias);
        resource.addProperty(SecurityConstants.PROP_PRIVATE_KEY_PASS, cryptoUtil
            .encryptAndBase64Encode(pvtkeyPass.getBytes()));
      }

      resource.setContent(content);
      registry.put(path, resource);
View Full Code Here

Examples of org.wso2.carbon.core.util.CryptoUtil.encryptAndBase64Encode()

            resource.addProperty(CSGConstant.USER_NAME, csgServer.getUserName());
            resource.addProperty(CSGConstant.PORT, csgServer.getPort());
            resource.addProperty(CSGConstant.DOMAIN_NAME, csgServer.getDomainName());

            CryptoUtil cryptoUtil = CryptoUtil.getDefaultCryptoUtil();
            resource.addProperty(CSGConstant.PASS_WORD, cryptoUtil.encryptAndBase64Encode(
                    csgServer.getPassWord().getBytes()));

            registry.put(CSGConstant.REGISTRY_SERVER_RESOURCE_PATH + "/" + csgServer.getName(),
                    resource);
        } catch (Exception e) {
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.