Package io.jans.fido2.service.verifier
Class CommonVerifiers
- java.lang.Object
-
- io.jans.fido2.service.verifier.CommonVerifiers
-
@ApplicationScoped public class CommonVerifiers extends Object
- Version:
- May 08, 2020
- Author:
- Yuriy Movchan
-
-
Field Summary
Fields Modifier and Type Field Description static String
SUPER_GLUU_APP_ID
static String
SUPER_GLUU_KEY_HANDLE
static String
SUPER_GLUU_MODE
static String
SUPER_GLUU_REQUEST
static String
SUPER_GLUU_REQUEST_CANCEL
-
Constructor Summary
Constructors Constructor Description CommonVerifiers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChallenge(com.fasterxml.jackson.databind.JsonNode clientDataJSONNode)
boolean
hasSuperGluu(com.fasterxml.jackson.databind.JsonNode params)
boolean
isSuperGluuCancelRequest(com.fasterxml.jackson.databind.JsonNode params)
boolean
isSuperGluuOneStepMode(com.fasterxml.jackson.databind.JsonNode params)
io.jans.orm.model.fido2.UserVerification
prepareUserVerification(com.fasterxml.jackson.databind.JsonNode params)
tss.tpm.TPMS_ATTEST
tpmParseToAttest(byte[] value)
tss.tpm.TPMT_PUBLIC
tpmParseToPublic(byte[] value)
void
verifyAAGUIDZeroed(AuthData authData)
int
verifyAlgorithm(com.fasterxml.jackson.databind.JsonNode alg, int registeredAlgorithmType)
void
verifyAssertionOptions(com.fasterxml.jackson.databind.JsonNode params)
String
verifyAssertionType(com.fasterxml.jackson.databind.JsonNode typeNode, String fieldName)
AttestationConveyancePreference
verifyAttestationConveyanceType(com.fasterxml.jackson.databind.JsonNode params)
void
verifyAttestationOptions(com.fasterxml.jackson.databind.JsonNode params)
String
verifyAuthData(com.fasterxml.jackson.databind.JsonNode node)
AuthenticatorAttachment
verifyAuthenticatorAttachment(com.fasterxml.jackson.databind.JsonNode authenticatorAttachment)
com.fasterxml.jackson.databind.JsonNode
verifyAuthStatement(com.fasterxml.jackson.databind.JsonNode node)
String
verifyBase64String(com.fasterxml.jackson.databind.JsonNode node)
String
verifyBase64UrlString(com.fasterxml.jackson.databind.JsonNode node, String fieldName)
void
verifyBasicPayload(com.fasterxml.jackson.databind.JsonNode params)
com.fasterxml.jackson.databind.JsonNode
verifyClientJSON(com.fasterxml.jackson.databind.JsonNode responseNode)
void
verifyClientJSONTypeIsCreate(com.fasterxml.jackson.databind.JsonNode clientJsonNode)
void
verifyClientJSONTypeIsGet(com.fasterxml.jackson.databind.JsonNode clientJsonNode)
com.fasterxml.jackson.databind.JsonNode
verifyClientRaw(com.fasterxml.jackson.databind.JsonNode responseNode)
void
verifyCounter(int counter)
void
verifyCounter(int oldCounter, int newCounter)
String
verifyCredentialId(CredAndCounterData attestationData, com.fasterxml.jackson.databind.JsonNode params)
String
verifyFmt(com.fasterxml.jackson.databind.JsonNode fmtNode, String fieldName)
void
verifyNotUseGluuParameters(com.fasterxml.jackson.databind.JsonNode params)
Boolean
verifyRequireResidentKey(com.fasterxml.jackson.databind.JsonNode requireResidentKey)
String
verifyRpDomain(com.fasterxml.jackson.databind.JsonNode params)
void
verifyRpIdHash(AuthData authData, String domain)
String
verifyThatBinary(com.fasterxml.jackson.databind.JsonNode node)
String
verifyThatFieldString(com.fasterxml.jackson.databind.JsonNode node, String fieldName)
void
verifyThatMetadataIsValid(com.fasterxml.jackson.databind.JsonNode metadata)
String
verifyThatNonEmptyString(com.fasterxml.jackson.databind.JsonNode node, String fieldName)
protected String
verifyThatString(com.fasterxml.jackson.databind.JsonNode node, String fieldName)
int
verifyTimeout(com.fasterxml.jackson.databind.JsonNode params)
TokenBindingSupport
verifyTokenBindingSupport(String status)
void
verifyTPMVersion(com.fasterxml.jackson.databind.JsonNode ver)
io.jans.orm.model.fido2.UserVerification
verifyUserVerification(com.fasterxml.jackson.databind.JsonNode userVerification)
-
-
-
Field Detail
-
SUPER_GLUU_REQUEST
public static final String SUPER_GLUU_REQUEST
- See Also:
- Constant Field Values
-
SUPER_GLUU_MODE
public static final String SUPER_GLUU_MODE
- See Also:
- Constant Field Values
-
SUPER_GLUU_REQUEST_CANCEL
public static final String SUPER_GLUU_REQUEST_CANCEL
- See Also:
- Constant Field Values
-
SUPER_GLUU_APP_ID
public static final String SUPER_GLUU_APP_ID
- See Also:
- Constant Field Values
-
SUPER_GLUU_KEY_HANDLE
public static final String SUPER_GLUU_KEY_HANDLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
verifyRpDomain
public String verifyRpDomain(com.fasterxml.jackson.databind.JsonNode params)
-
verifyCounter
public void verifyCounter(int oldCounter, int newCounter)
-
verifyCounter
public void verifyCounter(int counter)
-
verifyAttestationOptions
public void verifyAttestationOptions(com.fasterxml.jackson.databind.JsonNode params)
-
verifyAssertionOptions
public void verifyAssertionOptions(com.fasterxml.jackson.databind.JsonNode params)
-
verifyBasicPayload
public void verifyBasicPayload(com.fasterxml.jackson.databind.JsonNode params)
-
verifyBase64UrlString
public String verifyBase64UrlString(com.fasterxml.jackson.databind.JsonNode node, String fieldName)
-
verifyBase64String
public String verifyBase64String(com.fasterxml.jackson.databind.JsonNode node)
-
verifyThatString
protected String verifyThatString(com.fasterxml.jackson.databind.JsonNode node, String fieldName)
-
verifyThatFieldString
public String verifyThatFieldString(com.fasterxml.jackson.databind.JsonNode node, String fieldName)
-
verifyThatNonEmptyString
public String verifyThatNonEmptyString(com.fasterxml.jackson.databind.JsonNode node, String fieldName)
-
verifyThatBinary
public String verifyThatBinary(com.fasterxml.jackson.databind.JsonNode node)
-
verifyAuthData
public String verifyAuthData(com.fasterxml.jackson.databind.JsonNode node)
-
verifyAuthStatement
public com.fasterxml.jackson.databind.JsonNode verifyAuthStatement(com.fasterxml.jackson.databind.JsonNode node)
-
verifyAlgorithm
public int verifyAlgorithm(com.fasterxml.jackson.databind.JsonNode alg, int registeredAlgorithmType)
-
verifyFmt
public String verifyFmt(com.fasterxml.jackson.databind.JsonNode fmtNode, String fieldName)
-
verifyAAGUIDZeroed
public void verifyAAGUIDZeroed(AuthData authData)
-
verifyClientJSONTypeIsGet
public void verifyClientJSONTypeIsGet(com.fasterxml.jackson.databind.JsonNode clientJsonNode)
-
verifyClientJSONTypeIsCreate
public void verifyClientJSONTypeIsCreate(com.fasterxml.jackson.databind.JsonNode clientJsonNode)
-
verifyClientJSON
public com.fasterxml.jackson.databind.JsonNode verifyClientJSON(com.fasterxml.jackson.databind.JsonNode responseNode)
-
verifyClientRaw
public com.fasterxml.jackson.databind.JsonNode verifyClientRaw(com.fasterxml.jackson.databind.JsonNode responseNode)
-
verifyTPMVersion
public void verifyTPMVersion(com.fasterxml.jackson.databind.JsonNode ver)
-
verifyAttestationConveyanceType
public AttestationConveyancePreference verifyAttestationConveyanceType(com.fasterxml.jackson.databind.JsonNode params)
-
verifyTokenBindingSupport
public TokenBindingSupport verifyTokenBindingSupport(String status)
-
verifyAuthenticatorAttachment
public AuthenticatorAttachment verifyAuthenticatorAttachment(com.fasterxml.jackson.databind.JsonNode authenticatorAttachment)
-
verifyUserVerification
public io.jans.orm.model.fido2.UserVerification verifyUserVerification(com.fasterxml.jackson.databind.JsonNode userVerification)
-
prepareUserVerification
public io.jans.orm.model.fido2.UserVerification prepareUserVerification(com.fasterxml.jackson.databind.JsonNode params)
-
verifyRequireResidentKey
public Boolean verifyRequireResidentKey(com.fasterxml.jackson.databind.JsonNode requireResidentKey)
-
verifyAssertionType
public String verifyAssertionType(com.fasterxml.jackson.databind.JsonNode typeNode, String fieldName)
-
verifyCredentialId
public String verifyCredentialId(CredAndCounterData attestationData, com.fasterxml.jackson.databind.JsonNode params)
-
getChallenge
public String getChallenge(com.fasterxml.jackson.databind.JsonNode clientDataJSONNode)
-
verifyTimeout
public int verifyTimeout(com.fasterxml.jackson.databind.JsonNode params)
-
verifyThatMetadataIsValid
public void verifyThatMetadataIsValid(com.fasterxml.jackson.databind.JsonNode metadata)
-
hasSuperGluu
public boolean hasSuperGluu(com.fasterxml.jackson.databind.JsonNode params)
-
verifyNotUseGluuParameters
public void verifyNotUseGluuParameters(com.fasterxml.jackson.databind.JsonNode params)
-
isSuperGluuOneStepMode
public boolean isSuperGluuOneStepMode(com.fasterxml.jackson.databind.JsonNode params)
-
isSuperGluuCancelRequest
public boolean isSuperGluuCancelRequest(com.fasterxml.jackson.databind.JsonNode params)
-
tpmParseToPublic
public tss.tpm.TPMT_PUBLIC tpmParseToPublic(byte[] value)
-
tpmParseToAttest
public tss.tpm.TPMS_ATTEST tpmParseToAttest(byte[] value)
-
-