Class WebAuthn4JOptions
java.lang.Object
io.vertx.ext.auth.webauthn4j.WebAuthn4JOptions
Configuration for the webauthn object
- Author:
- Paulo Lopes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPubKeyCredParam(COSEAlgorithm pubKeyCredParam) addRootCertificate(X509Certificate rootCA) Adds a root certificate using its 'CN' subject as key.addTransport(AuthenticatorTransport transport) intgetRootCertificate(String key) booleanbooleanbooleanputRootCertificate(String key, String value) putRootCertificate(String key, X509Certificate cert) setAttestation(Attestation attestation) setAuthenticatorAttachment(AuthenticatorAttachment authenticatorAttachment) setChallengeLength(int challengeLength) setExtensions(JsonObject extensions) setPubKeyCredParams(List<COSEAlgorithm> pubKeyCredParams) setRelaxedSafetyNetIntegrityVeridict(boolean relaxedSafetyNetIntegrityVeridict) Set to true to allow SafetyNet attestation with a relaxed integrity veridict.setRelyingParty(RelyingParty relyingParty) setRequireResidentKey(Boolean requireResidentKey) setResidentKey(ResidentKey residentKey) setRootCertificates(Map<String, String> rootCertificates) setTimeoutInMilliseconds(Long timeoutInMilliseconds) setTransports(List<AuthenticatorTransport> transports) setUseMetadata(boolean useMetadata) setUserPresenceRequired(boolean userPresenceRequired) setUserVerification(UserVerification userVerification) toJson()toString()
-
Constructor Details
-
WebAuthn4JOptions
public WebAuthn4JOptions() -
WebAuthn4JOptions
-
-
Method Details
-
getRelyingParty
-
setRelyingParty
-
getTransports
-
setTransports
-
addTransport
-
getAttestation
-
setAttestation
-
getResidentKey
-
setResidentKey
-
getPubKeyCredParams
-
addPubKeyCredParam
-
setPubKeyCredParams
-
getAuthenticatorAttachment
-
setAuthenticatorAttachment
public WebAuthn4JOptions setAuthenticatorAttachment(AuthenticatorAttachment authenticatorAttachment) -
setRequireResidentKey
-
getUserVerification
-
setUserVerification
-
getTimeoutInMilliseconds
-
setTimeoutInMilliseconds
-
getChallengeLength
public int getChallengeLength() -
setChallengeLength
-
getExtensions
-
setExtensions
-
getRootCertificates
-
getRootCertificate
-
setRootCertificates
-
putRootCertificate
-
putRootCertificate
-
addRootCertificate
Adds a root certificate using its 'CN' subject as key. -
isRelaxedSafetyNetIntegrityVeridict
public boolean isRelaxedSafetyNetIntegrityVeridict() -
setRelaxedSafetyNetIntegrityVeridict
public WebAuthn4JOptions setRelaxedSafetyNetIntegrityVeridict(boolean relaxedSafetyNetIntegrityVeridict) Set to true to allow SafetyNet attestation with a relaxed integrity veridict. When the relaxed value istrue, the SafetyNet attestation will be accepted even if:- Certified, genuine device that passes CTS
- Certified device with unlocked bootloader
- Genuine but uncertified device, such as when the manufacturer doesn't apply for certification
- Device with custom ROM (not rooted)
- Parameters:
relaxedSafetyNetIntegrityVeridict-falsewill verifyctsProfileMatch,basicIntegrityotherwise.- Returns:
- self.
-
setUseMetadata
-
isUseMetadata
public boolean isUseMetadata() -
toJson
-
toString
-
isUserPresenceRequired
public boolean isUserPresenceRequired() -
setUserPresenceRequired
-