public final class JasyptCryptFactory extends Object
Implementation of the Apache Wicket ICryptFactory
interface
which returns JasyptCrypt
instances.
Requires a PBEByteEncryptor
as a constructor argument, which can
be created or retrieved from any part of the jasypt encryption configuration
infrastructure.
This class is thread-safe.
Constructor and Description |
---|
JasyptCryptFactory(PBEByteEncryptor encryptor)
Creates a new instance of JasyptCryptFactory.
|
public JasyptCryptFactory(PBEByteEncryptor encryptor)
Creates a new instance of JasyptCryptFactory.
This factory uses an instance of PBEByteEncryptor
instead of
a PBEStringEncryptor
(as could be expected) because Wicket
requires a specific type of String encoding (URL and file safe
BASE64), which is managed by a wicket internal class, and which
expectes byte[] input.
encryptor
- the PBEByteEncryptor to be used.Copyright © 2015 The JASYPT team. All rights reserved.