public class UnikeyFactory
extends java.lang.Object
RSAOAEPPrivateKey to BOSS format and back,
to support the .unikey file format.| Constructor | Description |
|---|---|
UnikeyFactory() |
| Modifier and Type | Method | Description |
|---|---|---|
static @Nullable PrivateKey |
fromUnikey(@org.checkerframework.checker.nullness.qual.NonNull byte[] bytes) |
Given the .unikey-format byte array with the private key, create the
PrivateKey. |
static @org.checkerframework.checker.nullness.qual.NonNull byte[] |
toUnikey(@NonNull PrivateKey privateKey) |
Given the
RSAOAEPPrivateKey, create the .unikey-format byte array. |
public static @Nullable PrivateKey fromUnikey(@org.checkerframework.checker.nullness.qual.NonNull byte[] bytes)
PrivateKey.public static @org.checkerframework.checker.nullness.qual.NonNull byte[] toUnikey(@NonNull PrivateKey privateKey)
RSAOAEPPrivateKey, create the .unikey-format byte array.