Package org.opends.server.crypto
Class CryptoManager.MacService
java.lang.Object
org.opends.server.crypto.CryptoManager.MacService
- Enclosing class:
- CryptoManager
Generates a MAC to use for authenticating data and provides an encoding for storing and reuse.
The encoding is an LDAP entry, that can be stored and used to verify data at a later point in time.
-
Method Summary
Modifier and TypeMethodDescriptiongetMac()
Return theMac
to use for MAC operations.wrapMacAsLdapEntry
(boolean signEntry) Return the MAC key as an LDAP Entry.
-
Method Details
-
getMac
Return theMac
to use for MAC operations.- Returns:
- the
Mac
to use for MAC operations
-
wrapMacAsLdapEntry
Return the MAC key as an LDAP Entry.- Parameters:
signEntry
- if the entry must contain a signature- Returns:
- the MAC key as an LDAP Entry
- Throws:
CryptoManagerException
- if an error occurs
-