|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.plugin.idipwsync.IDIPasswordCrypto
public class IDIPasswordCrypto
| Constructor Summary | |
|---|---|
IDIPasswordCrypto()
|
|
| Method Summary | |
|---|---|
static String |
decrypt(String cipherText,
String ksPath,
String ksPassword,
String certificateAlias)
decrypt: Obtain plain ascii text for encrypted ciphertext specified. |
static String |
decrypt(String cipherText,
String ksPath,
String ksPassword,
String certificateAlias,
String certificatePassword)
decrypt: Obtain plain ascii text for encrypted ciphertext specified. |
static String |
encrypt(String plainText,
String ksPath,
String ksPassword,
String certificateAlias)
encrypt: Obtain encrypted (and ascii-encoded) value for plaintext specified, null strings are not processed and will be returned as null. |
static String |
getProviderInfo()
getProviderInfo: Returns String value of provider information |
static void |
main(String[] argv)
Provided to demonstrate use of public static methods usage IDIPasswordCrypto testvalue keystorePath keystorePassword certificateAlias. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IDIPasswordCrypto()
| Method Detail |
|---|
public static String getProviderInfo()
throws Exception
Exception - When unable to add provider
public static String encrypt(String plainText,
String ksPath,
String ksPassword,
String certificateAlias)
throws Exception
plainText - String representing value to be encryptedksPath - String representing file path to jks fileksPassword - String representing password for jks file as specified by pathcertificateAlias - String naming the alias of certificate in keystore file
java.langException - when underlying funtion fails
Exception
public static String decrypt(String cipherText,
String ksPath,
String ksPassword,
String certificateAlias,
String certificatePassword)
throws Exception
cipherText - String representing value to be decryptedksPath - String representing file path to jks fileksPassword - String representing password for jks file as specified by pathcertificateAlias - String naming the alias of certificate in keystore filecertificatePassword - String representing password for the certificate's private key
java.langException - when underlying funtion fails
Exception
public static String decrypt(String cipherText,
String ksPath,
String ksPassword,
String certificateAlias)
throws Exception
cipherText - String representing value to be decryptedksPath - String representing file path to jks fileksPassword - String representing password for jks file as specified by pathcertificateAlias - String naming the alias of certificate in keystore file
java.langException - when underlying funtion fails
Exceptionpublic static void main(String[] argv)
argv -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||