public final class WebAuthnCodecs
extends java.lang.Object
Constructor and Description |
---|
WebAuthnCodecs() |
Modifier and Type | Method and Description |
---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
cbor() |
static com.upokecenter.cbor.CBORObject |
deepCopy(com.upokecenter.cbor.CBORObject a) |
static com.fasterxml.jackson.databind.node.ObjectNode |
deepCopy(com.fasterxml.jackson.databind.node.ObjectNode a) |
static ByteArray |
ecPublicKeyToCose(java.security.interfaces.ECPublicKey key) |
static ByteArray |
ecPublicKeyToRaw(java.security.interfaces.ECPublicKey key) |
static java.lang.String |
getSignatureAlgorithmName(java.security.PublicKey key) |
static java.security.interfaces.ECPublicKey |
importCoseP256PublicKey(ByteArray key) |
static com.fasterxml.jackson.databind.ObjectMapper |
json() |
static java.lang.String |
jwsAlgorithmNameToJavaAlgorithmName(java.lang.String alg) |
static ByteArray |
rawEcdaKeyToCose(ByteArray key) |
public static com.fasterxml.jackson.databind.ObjectMapper cbor()
public static com.fasterxml.jackson.databind.ObjectMapper json()
public static com.upokecenter.cbor.CBORObject deepCopy(com.upokecenter.cbor.CBORObject a)
public static com.fasterxml.jackson.databind.node.ObjectNode deepCopy(com.fasterxml.jackson.databind.node.ObjectNode a)
public static ByteArray ecPublicKeyToRaw(java.security.interfaces.ECPublicKey key)
public static ByteArray ecPublicKeyToCose(java.security.interfaces.ECPublicKey key)
public static java.security.interfaces.ECPublicKey importCoseP256PublicKey(ByteArray key) throws COSE.CoseException, java.io.IOException
COSE.CoseException
java.io.IOException
public static java.lang.String getSignatureAlgorithmName(java.security.PublicKey key)
public static java.lang.String jwsAlgorithmNameToJavaAlgorithmName(java.lang.String alg)