public abstract class FieldEncryptor extends Object
| Constructor and Description |
|---|
FieldEncryptor(KeystoreConf conf,
int mode) |
| Modifier and Type | Method and Description |
|---|---|
Object |
decrypt(byte[] fieldBytes,
co.cask.cdap.api.data.schema.Schema fieldSchema) |
byte[] |
encrypt(Object fieldVal,
co.cask.cdap.api.data.schema.Schema fieldSchema) |
abstract InputStream |
getKeystoreInputStream(String keystorePath) |
void |
initialize() |
public FieldEncryptor(KeystoreConf conf, int mode)
public abstract InputStream getKeystoreInputStream(String keystorePath) throws Exception
Exceptionpublic byte[] encrypt(Object fieldVal, co.cask.cdap.api.data.schema.Schema fieldSchema) throws BadPaddingException, IllegalBlockSizeException
public Object decrypt(byte[] fieldBytes, co.cask.cdap.api.data.schema.Schema fieldSchema) throws BadPaddingException, IllegalBlockSizeException
Copyright © 2017 Cask Data, Inc. Licensed under the Apache License, Version 2.0.