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);