class WebAuthnConfiguration implements WebAuthnConfigurationInterface (View source)

Constants

DEFAULT_CHALLENGE_LENGTH

MIN_CHALLENGE_LENGTH

SUPPORTED_ALGORITHMS

Methods

__construct()

No description

null|string
getRelyingPartyId()

Returns the configured RelyingParty

string
getEffectiveRelyingPartyId()

Returns the configured relying party id when set, otherwise the returned value will be the domain name part of the relying party origin.

setRelyingPartyName(string|null $rpName)

No description

setRelyingPartyId(string|null $rpId)

No description

getRelyingPartyEntity()

Returns a PublicKeyCredentialRpEntity structure based on the configured values

setRelyingPartyOrigin(string|null $origin)

No description

getRelyingPartyOrigin()

No description

getChallengeLength()

No description

setChallengeLength(int $challengeLength)

No description

setAllowedAlgorithms(array $algorithms)

Sets which algorithms are allowed for the credentials that are created. Array of constants from the COSEAlgorithm enumeration (e.g. COSEAlgorithm::ES256)

getAllowedAlgorithms()

No description

getAttestationFormats()

No description

setRelyingPartyIconUrl(string|null $url)

No description

getRelyingPartyIconUrl()

No description

Details

__construct()

null|string getRelyingPartyId()

Returns the configured RelyingParty

Return Value

null|string

string getEffectiveRelyingPartyId()

Returns the configured relying party id when set, otherwise the returned value will be the domain name part of the relying party origin.

Return Value

string

setRelyingPartyName(string|null $rpName)

Parameters

string|null $rpName

setRelyingPartyId(string|null $rpId)

Parameters

string|null $rpId A valid domain string that identifies the Relying Party on whose behalf a given registration or authentication ceremony is being performed

Exceptions

ConfigurationException if rpId is not a valid domain name

See also

https://www.w3.org/TR/webauthn/#relying-party-identifier

PublicKeyCredentialRpEntity getRelyingPartyEntity()

Returns a PublicKeyCredentialRpEntity structure based on the configured values

setRelyingPartyOrigin(string|null $origin)

Parameters

string|null $origin

getRelyingPartyOrigin()

getChallengeLength()

setChallengeLength(int $challengeLength)

Parameters

int $challengeLength

setAllowedAlgorithms(array $algorithms)

Sets which algorithms are allowed for the credentials that are created. Array of constants from the COSEAlgorithm enumeration (e.g. COSEAlgorithm::ES256)

Parameters

array $algorithms

Exceptions

ConfigurationException

See also

CoseAlgorithm

getAllowedAlgorithms()

getAttestationFormats()

setRelyingPartyIconUrl(string|null $url)

Parameters

string|null $url

getRelyingPartyIconUrl()