|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectaccessControl.IntegrityCheck
final class IntegrityCheck
Checks integrity of a message by generating a local message authentication code and comparing it to the one included in the message.
This class is thread-safe.
| Field Summary | |
|---|---|
private static InternalInformationPortController |
internalInformationPort
Reference on component InternalInformationPort. |
private static java.util.logging.Logger |
LOGGER
Logger used to log and display information. |
| Constructor Summary | |
|---|---|
private |
IntegrityCheck()
Empty constructor. |
| Method Summary | |
|---|---|
private static byte[] |
generateMAC(java.security.Key key,
byte[] message)
Generates and returns a message authentication code for the bypassed message. |
private static boolean |
isMACCorrect(ChannelEstablishMessage message)
Checks if the bypassed ChannelEstablishMessage has
integrity. |
private static boolean |
isMACCorrect(ChannelMessage message)
Checks if the bypassed ChannelMessage has integrity. |
protected static boolean |
isMACCorrect(Message message)
Checks if the bypassed message has integrity. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static InternalInformationPortController internalInformationPort
InternalInformationPort.
Used to display and/or log data and read general settings.
private static final java.util.logging.Logger LOGGER
| Constructor Detail |
|---|
private IntegrityCheck()
| Method Detail |
|---|
private static byte[] generateMAC(java.security.Key key,
byte[] message)
key - Key to generate message authentication code with.message - Message to be authenticated.
protected static boolean isMACCorrect(Message message)
message - Message to check.
private static boolean isMACCorrect(ChannelEstablishMessage message)
ChannelEstablishMessage has
integrity. Method is thread-safe.
message - Message to check.
private static boolean isMACCorrect(ChannelMessage message)
ChannelMessage has integrity.
Method is thread-safe.
message - Message to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||