public class WrapUtil
extends java.lang.Object
Constructor and Description |
---|
WrapUtil(CompactPasswordKey key) |
WrapUtil(CompactPasswordKey key,
java.lang.String encryptionAlgorithm) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
rewrapFromBase64(java.lang.String base64,
CompactPasswordKey newPasswordKey)
Helper method for password/secret changes
|
byte[] |
rewrapFromBytes(byte[] encryptedData,
CompactPasswordKey newPasswordKey)
Helper method for password/secret changes
|
void |
rewrapFromFile(java.io.File file,
CompactPasswordKey newPasswordKey)
Helper method for password/secret changes
|
void |
rewrapFromFile(java.lang.String file,
CompactPasswordKey newPasswordKey)
Helper method for password/secret changes
|
java.lang.String |
rewrapFromHex(java.lang.String hex,
CompactPasswordKey newPasswordKey)
Helper method for password/secret changes
|
morg.json.JSONObject |
rewrapFromJsonObject(morg.json.JSONObject json,
CompactPasswordKey newPasswordKey)
Helper method for password/secret changes
|
java.lang.String |
rewrapFromJsonString(java.lang.String json,
CompactPasswordKey newPasswordKey)
Helper method for password/secret changes
|
void |
rewrapFromStream(java.io.InputStream in,
java.io.OutputStream out,
CompactPasswordKey newPasswordKey)
Helper method for password/secret changes
|
EncryptionKey |
unwrapFromBase64(java.lang.String base64) |
EncryptionKey |
unwrapFromBytes(byte[] encryptedData) |
EncryptionKey |
unwrapFromFile(java.io.File file) |
EncryptionKey |
unwrapFromFile(java.lang.String file) |
EncryptionKey |
unwrapFromHex(java.lang.String hex) |
EncryptionKey |
unwrapFromJsonObject(morg.json.JSONObject json) |
EncryptionKey |
unwrapFromJsonString(java.lang.String json) |
EncryptionKey |
unwrapFromStream(java.io.InputStream in) |
java.lang.String |
wrapToBase64(EncryptionKey data) |
byte[] |
wrapToBytes(EncryptionKey data) |
void |
wrapToFile(java.io.File file,
EncryptionKey data) |
void |
wrapToFile(java.lang.String file,
EncryptionKey data) |
java.lang.String |
wrapToHex(EncryptionKey data) |
morg.json.JSONObject |
wrapToJsonObject(EncryptionKey data) |
java.lang.String |
wrapToJsonString(EncryptionKey data) |
void |
wrapToStream(java.io.OutputStream out,
EncryptionKey data) |
public WrapUtil(CompactPasswordKey key)
public WrapUtil(CompactPasswordKey key, java.lang.String encryptionAlgorithm)
public byte[] wrapToBytes(EncryptionKey data)
public java.lang.String wrapToBase64(EncryptionKey data)
public java.lang.String wrapToHex(EncryptionKey data)
public java.lang.String wrapToJsonString(EncryptionKey data)
public morg.json.JSONObject wrapToJsonObject(EncryptionKey data)
public void wrapToStream(java.io.OutputStream out, EncryptionKey data)
public void wrapToFile(java.lang.String file, EncryptionKey data)
public void wrapToFile(java.io.File file, EncryptionKey data)
public EncryptionKey unwrapFromBytes(byte[] encryptedData)
public EncryptionKey unwrapFromBase64(java.lang.String base64)
public EncryptionKey unwrapFromHex(java.lang.String hex)
public EncryptionKey unwrapFromJsonString(java.lang.String json)
public EncryptionKey unwrapFromJsonObject(morg.json.JSONObject json)
public EncryptionKey unwrapFromStream(java.io.InputStream in)
public EncryptionKey unwrapFromFile(java.lang.String file)
public EncryptionKey unwrapFromFile(java.io.File file)
public byte[] rewrapFromBytes(byte[] encryptedData, CompactPasswordKey newPasswordKey)
public java.lang.String rewrapFromBase64(java.lang.String base64, CompactPasswordKey newPasswordKey)
public java.lang.String rewrapFromHex(java.lang.String hex, CompactPasswordKey newPasswordKey)
public java.lang.String rewrapFromJsonString(java.lang.String json, CompactPasswordKey newPasswordKey)
public morg.json.JSONObject rewrapFromJsonObject(morg.json.JSONObject json, CompactPasswordKey newPasswordKey)
public void rewrapFromStream(java.io.InputStream in, java.io.OutputStream out, CompactPasswordKey newPasswordKey)
public void rewrapFromFile(java.lang.String file, CompactPasswordKey newPasswordKey)
public void rewrapFromFile(java.io.File file, CompactPasswordKey newPasswordKey)