public class MACTransformer extends Object implements Transformer
Mac| Modifier and Type | Field and Description |
|---|---|
static int |
HMAC_SHA1 |
static String |
HMAC_SHA1_NAME |
static int |
HMAC_SHA256 |
static String |
HMAC_SHA256_NAME |
| 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()
Gets the name of this transformer.
|
int |
getTransformationKind()
Gets the transformation kind used by this transformer.
|
public static final int HMAC_SHA1
public static final int HMAC_SHA256
public static final String HMAC_SHA1_NAME
public static final String HMAC_SHA256_NAME
public 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 SecurityExceptionpublic int getTransformationKind()
TransformergetTransformationKind in interface Transformerpublic String getName()
TransformergetName in interface TransformerCopyright © 2016. All rights reserved.