public final class Encrypter extends Object
Modifier and Type | Field and Description |
---|---|
static Encrypter |
FAIL_IF_TRYING_TO_ENCRYPT
Encrypter with no key, i.e. it will throw an appropriate exception if trying
to encrypt anything with it.
|
Modifier and Type | Method and Description |
---|---|
InputStream |
encrypt(byte[] content) |
InputStream |
encrypt(InputStream content) |
static Encrypter |
using(DigipostPublicKey digipostPublicKey) |
public static final Encrypter FAIL_IF_TRYING_TO_ENCRYPT
public static Encrypter using(DigipostPublicKey digipostPublicKey)
public InputStream encrypt(InputStream content)
public InputStream encrypt(byte[] content)
Copyright © 2017 Digipost. All rights reserved.