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()
TransformergetTransformationKind in interface Transformerpublic String getName()
getName in interface Transformerpublic SecurePayload encode(Key key, RTPSByteBuffer bb) throws SecurityException
Transformerencode in interface Transformerkey - 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
Transformerdecode in interface Transformerkey - Keypayload - Payload to decodeSecurityException - on SecurityExceptionCopyright © 2016. All rights reserved.