public class CompositeTransformer extends Object implements Transformer
Modifier and Type | Field and Description |
---|---|
static int |
AES_HMAC_SHA1 |
static int |
AES_HMAC_SHA256 |
Constructor and Description |
---|
CompositeTransformer(Transformer tr1,
Transformer tr2,
int kind)
Constructor for CompositeTransformer.
|
Modifier and Type | Method and Description |
---|---|
RTPSByteBuffer |
decode(Key key,
SecurePayload payload)
Decodes a given SecurePayload
|
SecurePayload |
encode(Key key,
RTPSByteBuffer bb)
Encodes RTPSByteBuffer into SecurePayload.
|
String |
getName()
Name of this CompositeTransformer.
|
int |
getTransformationKind()
Gets the transformation kind used by this transformer.
|
public static final int AES_HMAC_SHA1
public static final int AES_HMAC_SHA256
public CompositeTransformer(Transformer tr1, Transformer tr2, int kind)
tr1
- First Tranformertr2
- Second Transformerkind
- transformationKindpublic int getTransformationKind()
Transformer
getTransformationKind
in interface Transformer
public String getName()
getName
in interface Transformer
public SecurePayload encode(Key key, RTPSByteBuffer bb) throws SecurityException
Transformer
encode
in interface Transformer
key
- Keybb
- RTPSByteBuffer RTPSByteBuffer to encode. Position should be placed at
the end of buffer.SecurityException
- on SecurityExceptionpublic RTPSByteBuffer decode(Key key, SecurePayload payload) throws SecurityException
Transformer
decode
in interface Transformer
key
- Keypayload
- Payload to decodeSecurityException
- on SecurityExceptionCopyright © 2016. All rights reserved.