|
Sun Adapter for SAG API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stc.connector.sagadapter.jni.sag.LMAC
public class LMAC
Wrapper class for SAG C++ Message class. It is derived from sagapp.hpp. This class is designed to compute and verify local message authentication codes (LMAC).
Constructor Summary | |
---|---|
LMAC()
Creates a new instance of Message |
Method Summary | |
---|---|
static void |
compute(java.lang.String key,
java.lang.String algorithm,
Message msg)
Computes the LMAC. |
static java.lang.String |
compute(java.lang.String key,
java.lang.String algorithm,
java.lang.String address)
Computes the LMAC. |
void |
free()
Method free. |
static void |
verify(java.lang.String key,
java.lang.String algorithm,
Message msg)
Verifies the LMAC that is set in the local authentication field of the message. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LMAC()
Method Detail |
---|
public void free()
public static void compute(java.lang.String key, java.lang.String algorithm, Message msg) throws ExcStatus
key
- Bilateral key of 256 bits (a binary content of 32 octets).algorithm
- SAG 6.0.0 implements only the following algorithm: HMAC_SHA256msg
- The message used to compute LMAC.
ExcStatus
- when error occurspublic static java.lang.String compute(java.lang.String key, java.lang.String algorithm, java.lang.String address) throws ExcStatus
key
- Bilateral key of 256 bits (a binary content of 32 octets).algorithm
- SAG 6.0.0 implements only the following algorithm: HMAC_SHA256address
- Argument to set with the message partner name.
This name is used as the address of the server traffic of a message partner.
ExcStatus
- when error occurspublic static void verify(java.lang.String key, java.lang.String algorithm, Message msg) throws ExcStatus
key
- Bilateral key of 256 bits (a binary content of 32 octets).algorithm
- SAG 6.0.0 implements only the following algorithm: HMAC_SHA256msg
- The message used to verify LMAC.
ExcStatus
- when error occurs
|
Sun Adapter for SAG API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |