public class EventCipher extends Object
Constructor and Description |
---|
EventCipher() |
EventCipher(byte[] secretKey) |
EventCipher(Function<Event,Integer> keySelector,
List<byte[]> secretKeys) |
Modifier and Type | Method and Description |
---|---|
Event |
decrypt(Event cryptoEvent) |
EventWithToken |
decrypt(EventWithToken cryptoEventWithToken) |
protected byte[] |
decryptBytes(int keyIndex,
byte[] cryptoBytes) |
Event |
encrypt(Event clearEvent) |
protected byte[] |
encryptBytes(int keyIndex,
byte[] clearBytes) |
public EventCipher()
public EventCipher(byte[] secretKey)
public EventWithToken decrypt(EventWithToken cryptoEventWithToken)
protected byte[] encryptBytes(int keyIndex, byte[] clearBytes)
protected byte[] decryptBytes(int keyIndex, byte[] cryptoBytes)
Copyright © 2010–2019. All rights reserved.