|
static final String | SECRET_KEY_FILE = "/WEB-INF/elephant/security/secret.cipher" |
|
- Author
- Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g
Definition at line 40 of file Cipher.java.
◆ asymetricDecrypt()
static byte [] org.turro.elephant.impl.security.Cipher.asymetricDecrypt |
( |
byte[] |
inpBytes | ) |
throws Exception |
|
static |
Definition at line 81 of file Cipher.java.
83 KeyPair kp = (KeyPair) getFromFile(
new File(ElephantContext.getRealPath(PAIR_KEY_FILE)));
84 return AsymetricCipher.decrypt(inpBytes, kp.getPublic());
◆ asymetricEncrypt()
static byte [] org.turro.elephant.impl.security.Cipher.asymetricEncrypt |
( |
byte[] |
inpBytes | ) |
|
|
static |
Definition at line 75 of file Cipher.java.
77 KeyPair kp = (KeyPair) getFromFile(
new File(ElephantContext.getRealPath(PAIR_KEY_FILE)));
78 return AsymetricCipher.encrypt(inpBytes, kp.getPrivate());
◆ symetricDecrypt()
static byte [] org.turro.elephant.impl.security.Cipher.symetricDecrypt |
( |
byte[] |
inpBytes | ) |
|
|
static |
Definition at line 69 of file Cipher.java.
71 return SymetricCipher.decrypt(inpBytes, (SecretKey)
static final String SECRET_KEY_FILE
◆ symetricEncrypt()
static byte [] org.turro.elephant.impl.security.Cipher.symetricEncrypt |
( |
byte[] |
inpBytes | ) |
|
|
static |
Definition at line 63 of file Cipher.java.
65 return SymetricCipher.encrypt(inpBytes, (SecretKey)
◆ SECRET_KEY_FILE
final String org.turro.elephant.impl.security.Cipher.SECRET_KEY_FILE = "/WEB-INF/elephant/security/secret.cipher" |
|
static |
The documentation for this class was generated from the following file: