Package | Description |
---|---|
net.shibboleth.utilities.java.support.security |
Helpers for common security related tasks.
|
Modifier and Type | Class and Description |
---|---|
class |
DataExpiredException
Indicates the sealed data has expired.
|
Modifier and Type | Method and Description |
---|---|
private String |
DataSealer.extractAndCheckDecryptedData(byte[] decryptedBytes)
Extract the GZIP'd data and test for expiration before returning it.
|
private void |
DataSealer.testEncryption(SecretKey key)
Run a test over the configured bean properties.
|
String |
DataSealer.unwrap(String wrapped)
Decrypts and verifies an encrypted bundle created with
DataSealer.wrap(String, long) . |
String |
DataSealer.unwrap(String wrapped,
StringBuffer keyUsed)
Decrypts and verifies an encrypted bundle created with
DataSealer.wrap(String, long) , optionally
returning the label of the key used to encrypt the data. |
String |
DataSealer.wrap(String data,
long exp)
Encodes data into an AEAD-encrypted blob, gzip(exp|data)
exp = expiration time of the data; 8 bytes; Big-endian
data = the data; a UTF-8-encoded string
|
Copyright © 1999–2018. All rights reserved.