Package org.webpki.cbor
Class CBORPublicKey
java.lang.Object
org.webpki.cbor.CBORPublicKey
Class handling Java/COSE public key conversions.
See also CBORKeyPair
.
-
Method Summary
-
Method Details
-
convert
Convert JCE public key to COSE.- Parameters:
jcePublicKey
- Public key in Java/JCE format- Returns:
- Public key in COSE format
- Throws:
CryptoException
-
convert
Convert COSE public key to JCE.- Parameters:
cosePublicKey
- Public key in COSE formatNote: there must not be any additional items like key identifiers or mandated signature algorithms.
- Returns:
- Public key as a Java/JCE object
- Throws:
CryptoException
CBORException
-