Package io.meeds.pwa.utils
Class VapidKeysUtils
java.lang.Object
io.meeds.pwa.utils.VapidKeysUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic PrivateKeydecodePrivateKey(String privateKey) static PublicKeydecodePublicKey(String publicKey) static Stringencode(org.bouncycastle.jce.interfaces.ECPrivateKey privateKey) static Stringencode(org.bouncycastle.jce.interfaces.ECPublicKey publicKey) static KeyPair
-
Field Details
-
CURVE
- See Also:
-
ALGORITHM
- See Also:
-
-
Method Details
-
generateKeys
public static KeyPair generateKeys() throws InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchProviderException -
encode
-
encode
-
decodePublicKey
public static PublicKey decodePublicKey(String publicKey) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException -
decodePrivateKey
public static PrivateKey decodePrivateKey(String privateKey) throws NoSuchAlgorithmException, NoSuchProviderException, InvalidKeySpecException
-