gluu
公開メンバ関数 | 非公開変数類 | 全メンバ一覧
org.xdi.oxauth.service.EncryptionService クラス
org.xdi.oxauth.service.EncryptionService 連携図
Collaboration graph

公開メンバ関数

String decrypt (String encryptedString) throws EncryptionException
 
String decrypt (String encryptedValue, boolean returnSource)
 
String encrypt (String unencryptedString) throws EncryptionException
 
Properties decryptProperties (Properties connectionProperties)
 
Properties decryptAllProperties (Properties connectionProperties)
 

非公開変数類

Logger log
 
StringEncrypter stringEncrypter
 

詳解

Allows to decrypt passwords

著者
Yuriy Movchan Date: 09/23/2014

関数詳解

◆ decrypt() [1/2]

String org.xdi.oxauth.service.EncryptionService.decrypt ( String  encryptedString) throws EncryptionException
inline
36  {
37  if (StringHelper.isEmpty(encryptedString)) {
38  return null;
39  }
40 
41  return stringEncrypter.decrypt(encryptedString);
42  }
StringEncrypter stringEncrypter
Definition: EncryptionService.java:34

◆ decrypt() [2/2]

String org.xdi.oxauth.service.EncryptionService.decrypt ( String  encryptedValue,
boolean  returnSource 
)
inline
44  {
45  if (encryptedValue == null) {
46  return encryptedValue;
47  }
48 
49  String resultValue;
50  if (returnSource) {
51  resultValue = encryptedValue;
52  } else {
53  resultValue = null;
54  }
55 
56  try {
57  resultValue = stringEncrypter.decrypt(encryptedValue);
58  } catch (Exception ex) {
59  if (!returnSource) {
60  log.error(String.format("Failed to decrypt value: '%s'", encryptedValue, ex));
61  }
62  }
63 
64  return resultValue;
65  }
Logger log
Definition: EncryptionService.java:31
StringEncrypter stringEncrypter
Definition: EncryptionService.java:34

◆ decryptAllProperties()

Properties org.xdi.oxauth.service.EncryptionService.decryptAllProperties ( Properties  connectionProperties)
inline
79  {
80  return PropertiesDecrypter.decryptAllProperties(stringEncrypter, connectionProperties);
81  }
StringEncrypter stringEncrypter
Definition: EncryptionService.java:34

◆ decryptProperties()

Properties org.xdi.oxauth.service.EncryptionService.decryptProperties ( Properties  connectionProperties)
inline
75  {
76  return PropertiesDecrypter.decryptProperties(stringEncrypter, connectionProperties);
77  }
StringEncrypter stringEncrypter
Definition: EncryptionService.java:34

◆ encrypt()

String org.xdi.oxauth.service.EncryptionService.encrypt ( String  unencryptedString) throws EncryptionException
inline
67  {
68  if (StringHelper.isEmpty(unencryptedString)) {
69  return null;
70  }
71 
72  return stringEncrypter.encrypt(unencryptedString);
73  }
StringEncrypter stringEncrypter
Definition: EncryptionService.java:34

メンバ詳解

◆ log

Logger org.xdi.oxauth.service.EncryptionService.log
private

◆ stringEncrypter

StringEncrypter org.xdi.oxauth.service.EncryptionService.stringEncrypter
private

このクラス詳解は次のファイルから抽出されました: