Class AssertionResult.Builder
java.lang.Object
net.shibboleth.idp.plugin.authn.webauthn.authn.AssertionResult.Builder
- All Implemented Interfaces:
AssertionResult.IBuildStage,AssertionResult.ISignatureCounterValidStage,AssertionResult.ISuccessStage,AssertionResult.IUserIdStage,AssertionResult.IUsernameStage,AssertionResult.IUserVerifiedStage
- Enclosing class:
- AssertionResult
public static final class AssertionResult.Builder
extends Object
implements AssertionResult.ISuccessStage, AssertionResult.IUsernameStage, AssertionResult.ISignatureCounterValidStage, AssertionResult.IUserIdStage, AssertionResult.IUserVerifiedStage, AssertionResult.IBuildStage
The
AssertionResult builder.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanIs the signature count valid?private booleanIs this assertion valid?private byte[]The user.id.private StringThe username of the user this result corresponds to.private booleanWas the user verified by the authenticator during authentication? -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the result.withSignatureCounterValid(boolean sigCounterValid) Set if the signature counter is valid.withSuccess(boolean successIn) Set if this assertion was verified.withUserId(byte[] id) Set the user.id.withUsername(String uname) Set the user.name of the authenticated user.withUserVerified(boolean uv) Set the userVerified flag.
-
Field Details
-
success
private boolean successIs this assertion valid? -
username
The username of the user this result corresponds to. -
signatureCounterValid
private boolean signatureCounterValidIs the signature count valid? -
userId
private byte[] userIdThe user.id. -
userVerified
private boolean userVerifiedWas the user verified by the authenticator during authentication?
-
-
Constructor Details
-
Builder
private Builder()Constructor.
-
-
Method Details
-
withSuccess
Description copied from interface:AssertionResult.ISuccessStageSet if this assertion was verified.- Specified by:
withSuccessin interfaceAssertionResult.ISuccessStage- Parameters:
successIn- true if the assertion was verified, false otherwise.- Returns:
- the next stage
-
withUsername
Description copied from interface:AssertionResult.IUsernameStageSet the user.name of the authenticated user.- Specified by:
withUsernamein interfaceAssertionResult.IUsernameStage- Parameters:
uname- the user.name- Returns:
- the next stage
-
withSignatureCounterValid
Description copied from interface:AssertionResult.ISignatureCounterValidStageSet if the signature counter is valid.- Specified by:
withSignatureCounterValidin interfaceAssertionResult.ISignatureCounterValidStage- Parameters:
sigCounterValid- true if valid, false otherwise.- Returns:
- the next stage
-
withUserId
Description copied from interface:AssertionResult.IUserIdStageSet the user.id.- Specified by:
withUserIdin interfaceAssertionResult.IUserIdStage- Parameters:
id- the user.id- Returns:
- the next stage
-
withUserVerified
Set the userVerified flag.- Specified by:
withUserVerifiedin interfaceAssertionResult.IUserVerifiedStage- Parameters:
uv- the user verified flag- Returns:
- the next stage
-
build
Description copied from interface:AssertionResult.IBuildStageBuild the result.- Specified by:
buildin interfaceAssertionResult.IBuildStage- Returns:
- an assertion result
-