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 Details

    • getMac

      public Mac getMac()
      Return the Mac 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