Class MockKeyDerivation
- java.lang.Object
-
- org.opensaml.xmlsec.derivation.impl.MockKeyDerivation
-
- All Implemented Interfaces:
KeyAgreementParameter,KeyDerivation
public class MockKeyDerivation extends Object implements KeyDerivation
Mock key derivation for testing.
-
-
Constructor Summary
Constructors Constructor Description MockKeyDerivation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecretKeyderive(byte[] secret, String keyAlgorithm, Integer keyLength)StringgetAlgorithm()
-
-
-
Method Detail
-
getAlgorithm
public String getAlgorithm()
- Specified by:
getAlgorithmin interfaceKeyDerivation
-
derive
public SecretKey derive(byte[] secret, String keyAlgorithm, Integer keyLength) throws KeyDerivationException
- Specified by:
derivein interfaceKeyDerivation- Throws:
KeyDerivationException
-
-