Package io.vertx.ext.auth.webauthn
Class WebAuthnOptions
- java.lang.Object
-
- io.vertx.ext.auth.webauthn.WebAuthnOptions
-
public class WebAuthnOptions extends Object
Configuration for the webauthn object- Author:
- Paulo Lopes
-
-
Constructor Summary
Constructors Constructor Description WebAuthnOptions()
WebAuthnOptions(JsonObject json)
-
Method Summary
-
-
-
Constructor Detail
-
WebAuthnOptions
public WebAuthnOptions()
-
WebAuthnOptions
public WebAuthnOptions(JsonObject json)
-
-
Method Detail
-
getRelyingParty
public RelyingParty getRelyingParty()
-
setRelyingParty
public WebAuthnOptions setRelyingParty(RelyingParty relyingParty)
-
getTransports
public List<AuthenticatorTransport> getTransports()
-
setTransports
public WebAuthnOptions setTransports(List<AuthenticatorTransport> transports)
-
addTransport
public WebAuthnOptions addTransport(AuthenticatorTransport transport)
-
getAttestation
public Attestation getAttestation()
-
setAttestation
public WebAuthnOptions setAttestation(Attestation attestation)
-
getResidentKey
public ResidentKey getResidentKey()
-
setResidentKey
public WebAuthnOptions setResidentKey(ResidentKey residentKey)
-
getPubKeyCredParams
public List<PublicKeyCredential> getPubKeyCredParams()
-
addPubKeyCredParam
public WebAuthnOptions addPubKeyCredParam(PublicKeyCredential pubKeyCredParam)
-
setPubKeyCredParams
public WebAuthnOptions setPubKeyCredParams(List<PublicKeyCredential> pubKeyCredParams)
-
getAuthenticatorAttachment
public AuthenticatorAttachment getAuthenticatorAttachment()
-
setAuthenticatorAttachment
public WebAuthnOptions setAuthenticatorAttachment(AuthenticatorAttachment authenticatorAttachment)
-
getRequireResidentKey
public Boolean getRequireResidentKey()
-
setRequireResidentKey
public WebAuthnOptions setRequireResidentKey(Boolean requireResidentKey)
-
getUserVerification
public UserVerification getUserVerification()
-
setUserVerification
public WebAuthnOptions setUserVerification(UserVerification userVerification)
-
getTimeoutInMilliseconds
public Long getTimeoutInMilliseconds()
-
setTimeoutInMilliseconds
public WebAuthnOptions setTimeoutInMilliseconds(Long timeoutInMilliseconds)
-
getChallengeLength
public int getChallengeLength()
-
setChallengeLength
public WebAuthnOptions setChallengeLength(int challengeLength)
-
getExtensions
public JsonObject getExtensions()
-
setExtensions
public WebAuthnOptions setExtensions(JsonObject extensions)
-
getRootCertificates
public Map<String,X509Certificate> getRootCertificates()
-
getRootCertificate
public X509Certificate getRootCertificate(String key)
-
setRootCertificates
public WebAuthnOptions setRootCertificates(Map<String,String> rootCertificates)
-
putRootCertificate
public WebAuthnOptions putRootCertificate(String key, String value)
-
setRootCrls
public WebAuthnOptions setRootCrls(List<String> rootCrls)
-
addRootCrl
public WebAuthnOptions addRootCrl(String value)
Load a CRL, for example MDS3 certificate should use http://crl.globalsign.net/Root.crl
-
isRelaxedSafetyNetIntegrityVeridict
public boolean isRelaxedSafetyNetIntegrityVeridict()
-
setRelaxedSafetyNetIntegrityVeridict
public WebAuthnOptions 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
-false
will verifyctsProfileMatch
,basicIntegrity
otherwise.- Returns:
- self.
-
toJson
public JsonObject toJson()
-
-