public class SecurityTools extends Object
| Constructor and Description |
|---|
SecurityTools() |
| Modifier and Type | Method and Description |
|---|---|
protected io.reactivex.Single<byte[]> |
addValueToClusterMap(String pKey,
byte[] pValue) |
String |
decrypt(String encrypted) |
String |
encrypt(String value) |
protected io.reactivex.Single<byte[]> |
generateKey() |
String |
getGlobalUniqueString()
Unique string across cluster.
|
SecretKeySpec |
getKeySpec() |
org.apache.logging.log4j.Logger |
getLog() |
SecureRandom |
getRandom() |
io.vertx.reactivex.core.Vertx |
getVertx() |
void |
setLog(org.apache.logging.log4j.Logger pLog) |
void |
setRandom(SecureRandom pRandom) |
void |
setVertx(io.vertx.reactivex.core.Vertx pVertx) |
void |
startup() |
public void startup()
protected io.reactivex.Single<byte[]> addValueToClusterMap(String pKey, byte[] pValue)
protected io.reactivex.Single<byte[]> generateKey()
public String getGlobalUniqueString()
public org.apache.logging.log4j.Logger getLog()
public void setLog(org.apache.logging.log4j.Logger pLog)
public SecureRandom getRandom()
public void setRandom(SecureRandom pRandom)
public SecretKeySpec getKeySpec() throws InterruptedException, ExecutionException
public io.vertx.reactivex.core.Vertx getVertx()
public void setVertx(io.vertx.reactivex.core.Vertx pVertx)
Copyright © 2018. All rights reserved.