Class AssertionResult
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.authn.AssertionResult
The result of calling
WebAuthnAuthenticationClient.validateAuthenticatorAssertionResponse(String, byte[], com.yubico.webauthn.data.PublicKeyCredentialRequestOptions, com.yubico.webauthn.data.PublicKeyCredential).
Note, an instantiatable version of Yubico's AssertionResult.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classTheAssertionResultbuilder.static interfaceBuilder stage.static interfaceBuilder stage.static interfaceBuilder stage.static interfaceBuilder stage.static interfaceBuilder stage.static interfaceBuilder stage. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanIs the signature count valid?private final booleanIs this assertion valid?private final byte[]The user.id.private final StringThe username of the user this result corresponds to.private final booleanWas the user verified by the authenticator during authentication? -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAssertionResult(AssertionResult.Builder builder) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Builder.byte[]Get the user.id of the authenticated user.final StringGet the username of the authenticated user.final booleanIs the signature counter valid?final booleanIs this assertion valid?booleanWas the user verified by the authenticator during authentication?
-
Field Details
-
success
private final boolean successIs this assertion valid? -
username
The username of the user this result corresponds to. -
userVerified
private final boolean userVerifiedWas the user verified by the authenticator during authentication? -
signatureCounterValid
private final boolean signatureCounterValidIs the signature count valid? -
userId
private final byte[] userIdThe user.id.
-
-
Constructor Details
-
AssertionResult
Constructor.- Parameters:
builder- the builder used to create an instance of this class
-
-
Method Details
-
isSuccess
public final boolean isSuccess()Is this assertion valid?- Returns:
- true if verified, false otherwise.
-
getUsername
Get the username of the authenticated user.- Returns:
- the username.
-
isSignatureCounterValid
public final boolean isSignatureCounterValid()Is the signature counter valid?- Returns:
- true if valid, false otherwise.
-
getUserId
@Nonnull public byte[] getUserId()Get the user.id of the authenticated user.- Returns:
- the userId.
-
isUserVerified
public boolean isUserVerified()Was the user verified by the authenticator during authentication?- Returns:
- true if the user was verified, false otherwise.
-
builder
Builder.- Returns:
- the next stage
-