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 Summary
Constructors -
Method Summary
-
Constructor Details
-
MockKeyDerivation
public MockKeyDerivation()
-
-
Method Details
-
getAlgorithm
- Specified by:
getAlgorithmin interfaceorg.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:
derivein interfaceorg.opensaml.xmlsec.derivation.KeyDerivation- Throws:
org.opensaml.xmlsec.derivation.KeyDerivationException
-