Class MockKeyDerivation

java.lang.Object
org.opensaml.xmlsec.derivation.impl.MockKeyDerivation
All Implemented Interfaces:
KeyAgreementParameter, org.opensaml.xmlsec.derivation.KeyDerivation

public class MockKeyDerivation extends Object implements org.opensaml.xmlsec.derivation.KeyDerivation
Mock key derivation for testing.
  • Constructor Details

    • MockKeyDerivation

      public MockKeyDerivation()
  • Method Details

    • getAlgorithm

      @Nonnull public String getAlgorithm()
      Specified by:
      getAlgorithm in interface org.opensaml.xmlsec.derivation.KeyDerivation
    • derive

      @Nonnull public SecretKey derive(@Nonnull byte[] secret, @Nonnull String keyAlgorithm, @Nullable Integer keyLength) throws org.opensaml.xmlsec.derivation.KeyDerivationException
      Specified by:
      derive in interface org.opensaml.xmlsec.derivation.KeyDerivation
      Throws:
      org.opensaml.xmlsec.derivation.KeyDerivationException