public class SecurityTransformer extends TwoWayTransformer implements Serializable
TwoWayTransformer
where TwoWayTransformer.to(Object)
is encryption and from is decryption.
If hash
is true then it employs a hashing algorithm. In the case of hashing there is no reverse transformation.
Modifier and Type | Field and Description |
---|---|
String |
cipher
Cipher
|
from, to
Constructor and Description |
---|
SecurityTransformer() |
Modifier and Type | Method and Description |
---|---|
String |
getCipher() |
String |
getCipherType() |
Key |
getKey() |
boolean |
isHash() |
void |
setCipher(String cipher) |
void |
setCipherType(String cipherType) |
void |
setHash(boolean hash) |
void |
setKey(Key key) |
public String cipher
public boolean isHash()
public void setHash(boolean hash)
public String getCipherType()
public void setCipherType(String cipherType)
public String getCipher()
public void setCipher(String cipher)
public Key getKey()
public void setKey(Key key)
Copyright © 2018. All rights reserved.