Class CredentialUserInfo
Contains the info about a user in one credential on the YubiKey. This is the class returned when calling EnumerateCredentialsForRelyingParty(RelyingParty).
public class CredentialUserInfo
- Inheritance
-
objectCredentialUserInfo
Constructors
CredentialUserInfo(UserEntity, CredentialId, CoseKey, int, ReadOnlyMemory<byte>?)
Build a new instance of CredentialUserInfo based on the given objects related to a user.
public CredentialUserInfo(UserEntity user, CredentialId credentialId, CoseKey credentialPublicKey, int credProtectPolicy, ReadOnlyMemory<byte>? largeBlobKey = null)
Parameters
user
UserEntityThe user associated with the credential.
credentialId
CredentialIdThe credential ID, which includes the Id and Type.
credentialPublicKey
CoseKeyThe public key to use when verifying a credential.
credProtectPolicy
intAn int specifying the credential protection policy.
largeBlobKey
ReadOnlyMemory<byte>?If null, there is no large blob key. If not null, this is the key that can be used to encrypt or decrypt large blob data for the credential.
Properties
CredProtectPolicy
The credential protection policy. See section 12.1.1 of the FIDO2 standard for a description of the meanings of the number returned.
public CredProtectPolicy CredProtectPolicy { get; }
Property Value
CredentialId
The credential ID for a credential returned.
public CredentialId CredentialId { get; }
Property Value
CredentialPublicKey
The public key for a credential returned.
public CoseKey CredentialPublicKey { get; }
Property Value
LargeBlobKey
The large blob key for a credential. If this property is null, either the credential does not have a large blob key, or it does have a large blob key but it is not requested.
public ReadOnlyMemory<byte>? LargeBlobKey { get; }
Property Value
- ReadOnlyMemory<byte>?
User
The user entity for a credential returned.
public UserEntity User { get; }