Class CommonVerifiers


  • @ApplicationScoped
    public class CommonVerifiers
    extends Object
    Version:
    May 08, 2020
    Author:
    Yuriy Movchan
    • Constructor Detail

      • CommonVerifiers

        public CommonVerifiers()
    • Method Detail

      • verifyRpIdHash

        public void verifyRpIdHash​(AuthData authData,
                                   String domain)
      • 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)
      • 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)