public class JSONWebKeyBuilder extends Object
Constructor and Description |
---|
JSONWebKeyBuilder() |
Modifier and Type | Method and Description |
---|---|
JSONWebKey |
build(Certificate certificate)
Build a JSON Web Key from the provided X.509 Certificate.
|
JSONWebKey |
build(PrivateKey privateKey)
Build a JSON Web Key from the provided PrivateKey.
|
JSONWebKey |
build(PublicKey publicKey)
Build a JSON Web Key from the provided PublicKey.
|
JSONWebKey |
build(String encodedPEM)
Build a JSON Web Key from the provided encoded PEM.
|
public JSONWebKey build(String encodedPEM)
encodedPEM
- the encoded PEM in string formatpublic JSONWebKey build(PrivateKey privateKey)
privateKey
- the private keypublic JSONWebKey build(PublicKey publicKey)
publicKey
- the public keypublic JSONWebKey build(Certificate certificate)
certificate
- the certificateCopyright © 2021. All rights reserved.