Search in sources :

Example 6 with COSEAlgorithmIdentifier

use of com.webauthn4j.data.attestation.statement.COSEAlgorithmIdentifier in project webauthn4j by webauthn4j.

the class AbstractStatementValidatorTest method getJcaName.

@Test
void getJcaName() {
    COSEAlgorithmIdentifier invalid = COSEAlgorithmIdentifier.create(-16);
    assertThatThrownBy(() -> packedAttestationStatementValidator.getJcaName(invalid)).isInstanceOf(BadAttestationStatementException.class);
}
Also used : COSEAlgorithmIdentifier(com.webauthn4j.data.attestation.statement.COSEAlgorithmIdentifier) Test(org.junit.jupiter.api.Test)

Aggregations

COSEAlgorithmIdentifier (com.webauthn4j.data.attestation.statement.COSEAlgorithmIdentifier)6 PublicKeyCredentialParameters (com.webauthn4j.data.PublicKeyCredentialParameters)2 AttestationObject (com.webauthn4j.data.attestation.AttestationObject)2 COSEKey (com.webauthn4j.data.attestation.authenticator.COSEKey)2 RegistrationExtensionAuthenticatorOutput (com.webauthn4j.data.extension.authenticator.RegistrationExtensionAuthenticatorOutput)2 NonNull (org.checkerframework.checker.nullness.qual.NonNull)2 AuthenticatorTransport (com.webauthn4j.data.AuthenticatorTransport)1 PackedAttestationStatement (com.webauthn4j.data.attestation.statement.PackedAttestationStatement)1 CollectedClientData (com.webauthn4j.data.client.CollectedClientData)1 RegistrationExtensionClientOutput (com.webauthn4j.data.extension.client.RegistrationExtensionClientOutput)1 CoreServerProperty (com.webauthn4j.server.CoreServerProperty)1 ServerProperty (com.webauthn4j.server.ServerProperty)1 BadAlgorithmException (com.webauthn4j.validator.exception.BadAlgorithmException)1 BadSignatureException (com.webauthn4j.validator.exception.BadSignatureException)1 ECPoint (java.security.spec.ECPoint)1 EllipticCurve (java.security.spec.EllipticCurve)1 Test (org.junit.jupiter.api.Test)1