Package org.opends.server.crypto
Class CryptoManager.MacService
- java.lang.Object
-
- org.opends.server.crypto.CryptoManager.MacService
-
- Enclosing class:
- CryptoManager
public final class CryptoManager.MacService extends Object
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mac
getMac()
Return theMac
to use for MAC operations.Entry
wrapMacAsLdapEntry()
Return the MAC key as an LDAP Entry.
-
-
-
Method Detail
-
getMac
public Mac getMac()
Return theMac
to use for MAC operations.- Returns:
- the
Mac
to use for MAC operations
-
wrapMacAsLdapEntry
public Entry wrapMacAsLdapEntry() throws CryptoManagerException
Return the MAC key as an LDAP Entry.- Returns:
- the MAC key as an LDAP Entry
- Throws:
CryptoManagerException
- if an error occurs
-
-