Class PrfBasedKeyDeriver

  • All Implemented Interfaces:
    KeyDeriver

    @Immutable
    public final class PrfBasedKeyDeriver
    extends java.lang.Object
    implements KeyDeriver
    Implements the KeyDeriver interface by first applying a Prf and then using the global registry to create the correct key.
    • Method Detail

      • createWithPrfPrimitiveRegistry

        public static KeyDeriver createWithPrfPrimitiveRegistry​(PrimitiveRegistry primitiveRegistry,
                                                                PrfBasedKeyDerivationKey key)
                                                         throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • deriveKey

        public Key deriveKey​(byte[] salt)
                      throws java.security.GeneralSecurityException
        Specified by:
        deriveKey in interface KeyDeriver
        Throws:
        java.security.GeneralSecurityException