|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides Message Authentication functionality for the SSH layer.
Method Summary | |
boolean |
authenticate(java.lang.String data,
java.lang.String MAC,
java.lang.String secret)
Authenticates a message String (data) with a specified MAC String (MAC) accoring to the specified shared secret String (secret). |
java.lang.String |
createMAC(java.lang.String data,
java.lang.String secret)
Creates the Message Authentication Code for the provided String (data) according to the provided shared secret String (secret). |
java.lang.String |
getMACAlgorithmName()
Returns the MJC name of the MJCSSHMACAlgorithm. |
java.lang.String |
getMACAlgorithmVersion()
Returns the MJC version of the MJCSSHMACAlgorithm. |
int |
getMACLength()
Return the length of the MAC in bytes. |
Method Detail |
public java.lang.String getMACAlgorithmName()
public java.lang.String getMACAlgorithmVersion()
public java.lang.String createMAC(java.lang.String data, java.lang.String secret)
String
- data: the data for which the MAC has to be createdString
- secret: the shared secret for the MAC creationpublic boolean authenticate(java.lang.String data, java.lang.String MAC, java.lang.String secret)
String
- data: the message bodyString
- MAC: the Message Authentication Code for the message bodyString
- secret: the shared secret for authenticatingpublic int getMACLength()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |