public class DefaultSensitiveStringCodec extends Object implements SensitiveDataCodec<String>
Constructor and Description |
---|
DefaultSensitiveStringCodec() |
Modifier and Type | Method and Description |
---|---|
String |
decode(Object secret) |
Object |
encode(String secret) |
void |
init(Map<String,String> params) |
static void |
main(String[] args)
This main class is as documented on configuration-index.md, where the user can mask the password here.
|
public String decode(Object secret) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException
decode
in interface SensitiveDataCodec<String>
NoSuchPaddingException
NoSuchAlgorithmException
InvalidKeyException
BadPaddingException
IllegalBlockSizeException
public Object encode(String secret) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException
public void init(Map<String,String> params)
init
in interface SensitiveDataCodec<String>
Copyright © 2016 The Apache Software Foundation. All rights reserved.