Searched refs:encrypted (Results 1 - 17 of 17) sorted by relevance

/forgerock/openam-v13/openam-shared/src/main/java/com/iplanet/am/util/
H A DAMPasswordUtil.java45 * @return The encrypted password.
52 * Decrypts the encrypted password. If the string cannot be decrypted the
55 * @param encrypted
56 * encrypted string.
59 public static String decrypt(String encrypted) { argument
62 tmp = (Crypt.decode(encrypted));
64 tmp = encrypted;
67 tmp = encrypted;
/forgerock/openam/openam-shared/src/main/java/com/iplanet/am/util/
H A DAMPasswordUtil.java45 * @return The encrypted password.
52 * Decrypts the encrypted password. If the string cannot be decrypted the
55 * @param encrypted
56 * encrypted string.
59 public static String decrypt(String encrypted) { argument
62 tmp = (Crypt.decode(encrypted));
64 tmp = encrypted;
67 tmp = encrypted;
/forgerock/openidm-v4/openidm-crypto/src/main/java/org/forgerock/openidm/crypto/util/
H A DJettyPropertyUtil.java34 * that may need to be encrypted/obfuscated, and/or may be encrypted/obfuscated
66 * return the same value. Will return null if encrypted is null or encountered an error.
70 * @param encrypted
75 public static String decryptOrDeobfuscate(String encrypted) { argument
76 if (encrypted == null) {
81 decrypted = new String(Main.unfold(encrypted));
/forgerock/openam/openam-shared/src/test/java/org/forgerock/openam/shared/security/crypto/
H A DAESWrapEncryptionTest.java68 String content = "A test message to be encrypted";
71 byte[] encrypted = aesWrapEncryption.encrypt(content.getBytes(StandardCharsets.UTF_8));
72 byte[] decrypted = aesWrapEncryption.decrypt(encrypted);
84 byte[] encrypted = aesWrapEncryption.encrypt(input.getBytes(StandardCharsets.UTF_8));
87 assertThat(encrypted).isNotNull();
88 assertThat(new String(aesWrapEncryption.decrypt(encrypted), StandardCharsets.UTF_8)).isEqualTo(input);
107 String content = "A test message to be encrypted";
108 byte[] encrypted = aesWrapEncryption.encrypt(content.getBytes(StandardCharsets.UTF_8));
111 for (int i = 0; i < encrypted.length; ++i) {
112 byte[] altered = encrypted
[all...]
/forgerock/openidm-v4/openidm-crypto/src/test/java/org/forgerock/openidm/crypto/impl/
H A DMainTest.java44 String encrypted = Main.encrypt(expectedB);
46 Assert.assertEquals(Main.unfold(encrypted), expectedB.toCharArray());
/forgerock/openidm-v4/openidm-util/src/main/java/org/forgerock/openidm/util/
H A DJsonUtil.java89 boolean encrypted = false;
97 encrypted = JsonCrypto.isJsonCrypto(jsonValue);
99 encrypted = false; // IF we can't parse the string assume it's
100 // not in an encrypted format we support
103 return encrypted;
/forgerock/openam/openam-shared/src/main/java/org/forgerock/openam/shared/security/crypto/
H A DAESWrapEncryption.java42 * for each encrypted key from the AM encryption password. The AES KeyWrap algorithm provides strong integrity-protected
43 * <em>deterministic</em> encryption that is space efficient (encrypted keys are only slightly larger than the
50 * implementation uses {@link PBKDF2KeyDerivation} to derive unique keys for each item that is encrypted, using
106 * @return the encrypted data.
108 * @throws RuntimeException if the data cannot be encrypted for any reason.
117 final byte[] encrypted = cipher.wrap(new SecretKeySpec(pkcs5pad(rawData), "RAW"));
118 return formatEncryptedMessage(encryptionKey, encrypted);
160 * Formats an encrypted payload into the following form (in Big Endian byte order):
166 * <li>The encrypted ciphertext bytes.</li>
170 * @param data the encrypted ciphertex
[all...]
/forgerock/openam-v13/openam-shared/src/main/java/com/sun/identity/security/
H A DDataEncryptor.java69 * @param data the data to be encrypted.
78 * @return the encrypted data in Base64 encoded format.
112 * @param encAlgorithm the encryption algorithm was used for encrypted
143 * @param data the data to be encrypted.
150 * @return the encrypted data in Base64 encoded format.
207 byte[] encrypted = new String("ENCRYPTED").getBytes();
209 result[i] = encrypted[i];
232 byte[] encrypted = new String("ENCRYPTED").getBytes();
234 result[i] = encrypted[i];
/forgerock/openidm-v4/openidm-config/src/main/java/org/forgerock/openidm/config/crypto/
H A DConfigCrypto.java141 * @return The configuration with any properties encrypted that a component's meta data marks as encrypted
156 Dictionary encrypted = (existingConfig == null ? new Hashtable() : existingConfig); // Default to existing
195 throw new InternalErrorException("Failure in writing formatted and encrypted configuration "
199 encrypted.put(JSONConfigInstaller.JSON_CONFIG_PROPERTY, value);
202 logger.debug("Config with senstiive data encrypted {} {} : {}",
203 new Object[] {pidOrFactory, instanceAlias, encrypted});
206 return encrypted;
/forgerock/openam/openam-shared/src/main/java/com/sun/identity/security/
H A DDataEncryptor.java69 * @param data the data to be encrypted.
78 * @return the encrypted data in Base64 encoded format.
112 * @param encAlgorithm the encryption algorithm was used for encrypted
143 * @param data the data to be encrypted.
150 * @return the encrypted data in Base64 encoded format.
207 byte[] encrypted = new String("ENCRYPTED").getBytes();
209 result[i] = encrypted[i];
232 byte[] encrypted = new String("ENCRYPTED").getBytes();
234 result[i] = encrypted[i];
/forgerock/openidm-v4/openidm-security/src/main/java/org/forgerock/openidm/security/impl/
H A DSecurityResourceProvider.java482 JsonValue encrypted = getCryptoService().encrypt(keyPairValue, cryptoCipher, cryptoAlias);
484 keyMap.put("keyPair", encrypted.getObject());
537 JsonValue encrypted = keyResource.getContent().get("keyPair");
538 JsonValue keyPairValue = getCryptoService().decrypt(encrypted);
/forgerock/openidm-v4/openidm-zip/src/main/resources/samples/multiplepasswords/
H A DREADME.md77 password is encrypted (as opposed to hashed) a transform script is defined with uses openidm.decrypt() to set the
109 of historical values for that field. The script also contains logic to deal with the comparison of encrypted and/or
263 were encrypted/hashed as expected.
/forgerock/web-agents-v4/source/iis/
H A Dagent.c749 static am_status_t des_decrypt(const char *encrypted, const char *keys, char **clear) { argument
758 size_t enc_sz = strlen(encrypted);
761 data = (BYTE *) base64_decode(encrypted, &enc_sz);
/forgerock/opendj-b2.6/ext/svnkit/
H A Dsvnkit.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/LICENSE.txt org/ org/tmatesoft/ org/ ...
/forgerock/opendj2/ext/svnkit/lib/
H A Dsvnkit-1.8.5.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/LICENSE.txt org/ org/tmatesoft/ org/ ...
/forgerock/opendj2.6.2/ext/svnkit/
H A Dsvnkit.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/LICENSE.txt org/ org/tmatesoft/ org/ ...
/forgerock/opendj2-hg/ext/svnkit/lib/
H A Dsvnkit-1.8.5.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/LICENSE.txt org/ org/tmatesoft/ org/ ...

Completed in 223 milliseconds