public final class COSEC509
extends java.lang.Object
COSE_C509 = C509CertData / [ 2* C509CertData ] C509CertData = bytes .cbor C509Certificatea single certificate, or an array of two or more, each wrapped in a byte string so a parser can skip over individual certificates.
| Modifier and Type | Method and Description |
|---|---|
static C509Certificate[] |
decode(byte[] encoding)
Decode a COSE_C509 structure.
|
static byte[] |
encode(C509Certificate[] certificates)
Encode a bag or chain of certificates as a COSE_C509 structure.
|
public static byte[] encode(C509Certificate[] certificates) throws java.io.IOException
java.io.IOExceptionpublic static C509Certificate[] decode(byte[] encoding) throws java.io.IOException
java.io.IOException