Package io.jans.fido2.service
Class CoseService
- java.lang.Object
-
- io.jans.fido2.service.CoseService
-
@ApplicationScoped public class CoseService extends Object
Utility classes for COSE key structure.
-
-
Constructor Summary
Constructors Constructor Description CoseService()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode
convertECKeyToUncompressedPoint(byte[] encodedPublicKey)
ECPublicKey
convertUncompressedPointToECKey(byte[] uncompressedPoint, int curve)
PublicKey
createUncompressedPointFromCOSEPublicKey(com.fasterxml.jackson.databind.JsonNode uncompressedECPointNode)
PublicKey
decodePublicKey(byte[] encodedPublicKey)
int
getCodeCurve(com.fasterxml.jackson.databind.JsonNode uncompressedECPointNode)
PublicKey
getPublicKeyFromUncompressedECPoint(byte[] uncompressedECPointCOSEPubKey)
static byte[]
toUncompressedCoord(byte[] coord, int keySizeBytes)
-
-
-
Method Detail
-
getCodeCurve
public int getCodeCurve(com.fasterxml.jackson.databind.JsonNode uncompressedECPointNode)
-
createUncompressedPointFromCOSEPublicKey
public PublicKey createUncompressedPointFromCOSEPublicKey(com.fasterxml.jackson.databind.JsonNode uncompressedECPointNode)
-
convertUncompressedPointToECKey
public ECPublicKey convertUncompressedPointToECKey(byte[] uncompressedPoint, int curve)
-
getPublicKeyFromUncompressedECPoint
public PublicKey getPublicKeyFromUncompressedECPoint(byte[] uncompressedECPointCOSEPubKey)
-
convertECKeyToUncompressedPoint
public com.fasterxml.jackson.databind.JsonNode convertECKeyToUncompressedPoint(byte[] encodedPublicKey)
-
toUncompressedCoord
public static byte[] toUncompressedCoord(byte[] coord, int keySizeBytes)
-
decodePublicKey
public PublicKey decodePublicKey(byte[] encodedPublicKey) throws io.jans.as.model.exception.SignatureException
- Throws:
io.jans.as.model.exception.SignatureException
-
-