Package org.webpki.cbor
Class CBORX509Signer
Class for creating X.509 signatures.
Also see CBORSigner
.
Note that X.509 signatures do not permit the use of a keyId
.
-
Constructor Summary
ConstructorDescriptionCBORX509Signer
(PrivateKey privateKey, X509Certificate[] certificatePath) Creates an X.509 signer object with a private key.CBORX509Signer
(PrivateKey privateKey, X509Certificate[] certificatePath, AsymSignatureAlgorithms algorithm) Creates an X.509 signer object with a private key.CBORX509Signer
(X509SignerInterface signer) Creates an X.509 signer object with an external interface. -
Method Summary
Methods inherited from class org.webpki.cbor.CBORSigner
setCloneMode, setIntercepter, setKeyId, setProvider, sign
-
Constructor Details
-
CBORX509Signer
Creates an X.509 signer object with an external interface.- Parameters:
signer
- Custom signer
-
CBORX509Signer
Creates an X.509 signer object with a private key.The signature algorithm to use is based on the recommendations in RFC 7518.
- Parameters:
privateKey
- Signature keycertificatePath
- A matching non-null certificate path
-
CBORX509Signer
public CBORX509Signer(PrivateKey privateKey, X509Certificate[] certificatePath, AsymSignatureAlgorithms algorithm) Creates an X.509 signer object with a private key.- Parameters:
privateKey
- Signature keycertificatePath
- A matching non-null certificate pathalgorithm
- Signature algorithm
-