RelyingParty Class
Namespace: Yubico.YubiKey.Fido2 Assembly: Yubico.YubiKey.dllA FIDO2 RelyingParty
, consisting of ID and name. This is used when
the FIDO2 standard specifies a PublicKeyCredentialRpEntity
.
public class RelyingParty : Object, ICborEncode
Remarks
A relying party (RP) can specify its ID, but a client can also build an RP ID based on the domain of the page its currently communicating with. In addition, an authenticator or a platform can specify a "human-readable" name of the RP to display to the user.
This class holds the RP ID and name, and can encode and decode them as part of CBOR structures.
The FIDO2 standard specifies that when communicating with the authenticator, the ID is a required element. The W3C standard says the ID is optional. This seeming contradiction is because the RP is not required to specify an ID. In that case, the client will build an ID from the domain it is communicating with. Either way, an ID must be passed to the authenticator. Hence, when building am instance of RelyingParty, an ID is required.
The W3C standard declares the name a required element, and the FIDO2 standard declares it optional. Because the FIDO2 standard specifically prescribes authenticator functionality, this class will allow a null name.
Constructors
Name | Description |
---|---|
RelyingParty(ReadOnlyMemory<Byte>) | Constructs a new instance of RelyingParty based on the encoded value. |
RelyingParty(String) | Constructs a new instance of RelyingParty. |
Properties
Name | Description |
---|---|
Id | The |
Name | The |
RelyingPartyIdHash | The SHA-256 digest of the |
Methods
Name | Description |
---|---|
CborEncode() | |
IsMatchingRelyingPartyId(ReadOnlyMemory<Byte>) | Determine if the |