Skip to content

Instantly share code, notes, and snippets.

@OleksandrKucherenko
Created February 7, 2020 13:42
Show Gist options
  • Save OleksandrKucherenko/e97c3f89d0cd19734fea210eee9d2c5b to your computer and use it in GitHub Desktop.
Save OleksandrKucherenko/e97c3f89d0cd19734fea210eee9d2c5b to your computer and use it in GitHub Desktop.
package com.oblador.keychain;
import javax.crypto.KeyGeneratorSpi;
import javax.crypto.SecretKey;
public abstract class FakeKeyGeneratorSpi extends KeyGeneratorSpi {
@Override
protected SecretKey engineGenerateKey() {
return doEngineGenerateKey();
}
public abstract SecretKey doEngineGenerateKey();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment