Class CryptoKeyData
java.lang.Object
com.bld.crypto.bean.CryptoKeyData
Data transfer object that carries the key name and the URL-encoding flag used by
serializers and deserializers to locate the correct cryptographic key and to decide
whether the encrypted payload must be further Base64-encoded for safe embedding in
a URL.
-
Constructor Summary
ConstructorsConstructorDescriptionCryptoKeyData(String name, boolean url) Constructs a newCryptoKeyDatainstance. -
Method Summary
-
Constructor Details
-
CryptoKeyData
Constructs a newCryptoKeyDatainstance.- Parameters:
name- the logical name of the cryptographic keyurl-trueif the encrypted value should be URL-safe Base64-encoded
-
-
Method Details
-
getName
-
isUrl
public boolean isUrl()Returns whether the encrypted value must be URL-safe Base64-encoded.- Returns:
trueif URL-encoding is required,falseotherwise
-