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
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 SecurityExceptionpublic int getTransformationKind()
Transformer
getTransformationKind
in interface Transformer
public String getName()
Transformer
getName
in interface Transformer
Copyright © 2016. All rights reserved.