|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclient.MacGenerator
final class MacGenerator
Provides methods for generating message authentication codes (MACs) and MAC keys.
Field Summary | |
---|---|
private static InternalInformationPortController |
internalInformationPort
Reference on component InternalInformationPortController . |
private static javax.crypto.KeyGenerator |
keyGenerator
Key generator. |
private static java.util.logging.Logger |
LOGGER
Logger used to log and display information. |
private static java.lang.String |
MAC_ALGORITHM
Name of the algorithm used to generate a message authentication code. |
private static javax.crypto.Mac |
macGenerator
Mac generator object used to generate MACs. |
Constructor Summary | |
---|---|
private |
MacGenerator()
Empty, private constructor (never used since all methods are static). |
Method Summary | |
---|---|
protected static byte[] |
generateMAC(java.security.Key key,
byte[] message)
Generates and returns a message authentication code for the bypassed message. |
protected static javax.crypto.SecretKey |
generateMacKey()
Generates and returns a MAC key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static InternalInformationPortController internalInformationPort
InternalInformationPortController
.
Used to display and/or log data and read general settings.
private static final java.util.logging.Logger LOGGER
private static final java.lang.String MAC_ALGORITHM
private static javax.crypto.Mac macGenerator
private static javax.crypto.KeyGenerator keyGenerator
Constructor Detail |
---|
private MacGenerator()
Method Detail |
---|
protected static javax.crypto.SecretKey generateMacKey()
protected static byte[] generateMAC(java.security.Key key, byte[] message)
key
- Key to generate message authentication code with.message
- Message to be authenticated.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |