AutoCloseablepublic class TransportEncryption extends Object implements AutoCloseable
| Modifier and Type | Field | Description |
|---|---|---|
static int |
AES_BITS |
|
static int |
PRIVATE_VALUE_BITS |
| Constructor | Description |
|---|---|
TransportEncryption() |
|
TransportEncryption(Service service) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
clear() |
|
void |
close() |
|
char[] |
decrypt(Secret secret) |
|
Secret |
encrypt(byte[] plain,
Charset charset) |
|
Secret |
encrypt(CharSequence plain) |
|
void |
generateSessionKey() |
|
Service |
getService() |
|
void |
initialize() |
|
void |
openSession() |
public static final int PRIVATE_VALUE_BITS
public static final int AES_BITS
public TransportEncryption()
throws org.freedesktop.dbus.exceptions.DBusException
org.freedesktop.dbus.exceptions.DBusExceptionpublic TransportEncryption(Service service)
public void initialize()
throws NoSuchAlgorithmException,
InvalidAlgorithmParameterException
public void openSession()
public void generateSessionKey()
throws NoSuchAlgorithmException,
InvalidKeySpecException,
InvalidKeyException
public Secret encrypt(CharSequence plain) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException
public Secret encrypt(byte[] plain, Charset charset) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidAlgorithmParameterException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException
public char[] decrypt(Secret secret) throws NoSuchPaddingException, NoSuchAlgorithmException, InvalidAlgorithmParameterException, InvalidKeyException, BadPaddingException, IllegalBlockSizeException
public Service getService()
public void clear()
public void close()
close in interface AutoCloseableCopyright © 2019. All rights reserved.