Package io.jans.fido2.service
Class AuthenticatorDataParser
- java.lang.Object
-
- io.jans.fido2.service.AuthenticatorDataParser
-
@ApplicationScoped public class AuthenticatorDataParser extends Object
authData � a raw buffer struct containing user info. Parser for authData or authenticatorData
-
-
Field Summary
Fields Modifier and Type Field Description static int
FLAG_ATTESTED_CREDENTIAL_DATA_INCLUDED
static int
FLAG_EXTENSION_DATA_INCLUDED
static int
FLAG_USER_PRESENT
static int
FLAG_USER_VERIFIED
-
Constructor Summary
Constructors Constructor Description AuthenticatorDataParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthData
parseAssertionData(String incomingAuthData)
AuthData
parseAttestationData(String incomingAuthData)
int
parseCounter(byte[] counter)
boolean
verifyAtFlag(byte[] flags)
void
verifyAttestationBuffer(byte[] attestationBuffer)
boolean
verifyEdFlag(byte[] flags)
void
verifyExtensionBuffer(byte[] extensionBuffer)
void
verifyNoLeftovers(byte[] leftovers)
-
-
-
Field Detail
-
FLAG_USER_PRESENT
public static final int FLAG_USER_PRESENT
- See Also:
- Constant Field Values
-
FLAG_USER_VERIFIED
public static final int FLAG_USER_VERIFIED
- See Also:
- Constant Field Values
-
FLAG_ATTESTED_CREDENTIAL_DATA_INCLUDED
public static final int FLAG_ATTESTED_CREDENTIAL_DATA_INCLUDED
- See Also:
- Constant Field Values
-
FLAG_EXTENSION_DATA_INCLUDED
public static final int FLAG_EXTENSION_DATA_INCLUDED
- See Also:
- Constant Field Values
-
-
Method Detail
-
parseCounter
public int parseCounter(byte[] counter)
-
verifyAtFlag
public boolean verifyAtFlag(byte[] flags)
-
verifyEdFlag
public boolean verifyEdFlag(byte[] flags)
-
verifyAttestationBuffer
public void verifyAttestationBuffer(byte[] attestationBuffer)
-
verifyExtensionBuffer
public void verifyExtensionBuffer(byte[] extensionBuffer)
-
verifyNoLeftovers
public void verifyNoLeftovers(byte[] leftovers)
-
-