[java-idp-plugin-webauthn] branch main updated: Remove unused context field
Phil Smart
philip.smart at jisc.ac.uk
Mon Oct 21 14:59:34 UTC 2024
This is an automated email from the git hooks/post-receive script.
philsmart pushed a commit to branch main
in repository java-idp-plugin-webauthn.
View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-webauthn.git;a=commit;h=21fd0651f739363478b41373b6ba9102866460f9
The following commit(s) were added to refs/heads/main by this push:
new 21fd065 Remove unused context field
21fd065 is described below
commit 21fd0651f739363478b41373b6ba9102866460f9
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Mon Oct 21 15:59:31 2024 +0100
Remove unused context field
---
.../context/WebAuthnAuthenticationContext.java | 26 ----------------------
.../impl/FunctionalCredentialPolicyRule.java | 1 +
2 files changed, 1 insertion(+), 26 deletions(-)
diff --git a/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/WebAuthnAuthenticationContext.java b/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/WebAuthnAuthenticationContext.java
index 63dcaee..1e65122 100644
--- a/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/WebAuthnAuthenticationContext.java
+++ b/webauthn-api/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/context/WebAuthnAuthenticationContext.java
@@ -23,7 +23,6 @@ import com.yubico.webauthn.data.ClientAssertionExtensionOutputs;
import com.yubico.webauthn.data.PublicKeyCredential;
import com.yubico.webauthn.data.PublicKeyCredentialRequestOptions;
-import net.shibboleth.idp.plugin.authn.webauthn.storage.CredentialRecord;
import net.shibboleth.shared.logic.Constraint;
@@ -50,9 +49,6 @@ public final class WebAuthnAuthenticationContext extends BaseWebAuthnContext {
/** The public key credential request options for generating an authentication assertion.*/
@Nullable private PublicKeyCredentialRequestOptions publicKeyCredentialRequestOptions;
-
- /** The authentication credential as signalled by the authenticator.*/
- @Nullable private CredentialRecord authenticationCredential;
/**
* Get the credential Id.
@@ -185,27 +181,5 @@ public final class WebAuthnAuthenticationContext extends BaseWebAuthnContext {
public boolean isSecondFactor() {
return secondFactor;
}
-
- /**
- * Set the credential used by the authenticator for this authentication.
- *
- * @param credential The authentication credential to set.
- *
- * @return this context
- */
- @Nonnull public WebAuthnAuthenticationContext setAuthenticationCredential(
- @Nullable final CredentialRecord credential) {
- authenticationCredential = credential;
- return this;
- }
-
- /**
- * Get the credential used by the authenticator for this authentication.
- *
- * @return the authentication credential.
- */
- @Nullable public CredentialRecord getAuthenticationCredential() {
- return authenticationCredential;
- }
}
diff --git a/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/policy/impl/FunctionalCredentialPolicyRule.java b/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/policy/impl/FunctionalCredentialPolicyRule.java
index f81b026..936bed5 100644
--- a/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/policy/impl/FunctionalCredentialPolicyRule.java
+++ b/webauthn-impl/src/main/java/net/shibboleth/idp/plugin/authn/webauthn/policy/impl/FunctionalCredentialPolicyRule.java
@@ -13,6 +13,7 @@
*/
package net.shibboleth.idp.plugin.authn.webauthn.policy.impl;
+
import java.util.function.BiFunction;
import javax.annotation.Nonnull;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list