[java-idp-plugin-vci] 05/05: Deleted due rework

Codeberg noreply at shibboleth.net
Wed Dec 3 12:02:57 UTC 2025


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch DPOP
in repository java-idp-plugin-vci.

View the commit online:
https://codeberg.org/Shibboleth/java-idp-plugin-vci/commit/83f43ed4ca278c1d55403a38a64da130afe6dd3d

commit 83f43ed4ca278c1d55403a38a64da130afe6dd3d
Author: jlauros <janne.lauros at csc.fi>
AuthorDate: Wed Dec 3 14:02:26 2025 +0200

    Deleted due rework
---
 .../stolen/AbstractOIDCUserInfoRequestAction.java  | 41 -----------
 .../stolen/AbstractOIDCUserInfoResponseAction.java | 79 --------------------
 ...stractOIDCUserInfoValidationResponseAction.java | 83 ----------------------
 3 files changed, 203 deletions(-)

diff --git a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/stolen/AbstractOIDCUserInfoRequestAction.java b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/stolen/AbstractOIDCUserInfoRequestAction.java
deleted file mode 100644
index fb66b58..0000000
--- a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/stolen/AbstractOIDCUserInfoRequestAction.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-// TODO: This abstract class is copied as is from shibboleth project. Refactoring needed.
-
-package org.geant.shibboleth.plugin.openidvci.profile.impl.stolen;
-
-import org.geant.shibboleth.plugin.openidvci.messaging.impl.OpenIDVCICredentialsRequest;
-import org.opensaml.messaging.context.MessageContext;
-import org.opensaml.profile.context.ProfileRequestContext;
-
-import com.nimbusds.openid.connect.sdk.UserInfoRequest;
-
-/**
- * Abstract class for actions performing actions on {@link UserInfoRequest} found via
- * {@link ProfileRequestContext#getInboundMessageContext()} and {@link MessageContext#getMessage()}.
- */
-public abstract class AbstractOIDCUserInfoRequestAction extends AbstractOIDCRequestAction<OpenIDVCICredentialsRequest> {
-
-    /**
-     * Returns OIDC user info request.
-     * 
-     * @return request
-     */
-    public OpenIDVCICredentialsRequest getUserInfoRequest() {
-        return getRequest();
-    }
-
-}
diff --git a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/stolen/AbstractOIDCUserInfoResponseAction.java b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/stolen/AbstractOIDCUserInfoResponseAction.java
deleted file mode 100644
index d42ea12..0000000
--- a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/stolen/AbstractOIDCUserInfoResponseAction.java
+++ /dev/null
@@ -1,79 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-// TODO: This abstract class is copied as is from shibboleth project. Refactoring needed.
-
-package org.geant.shibboleth.plugin.openidvci.profile.impl.stolen;
-
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-
-import org.opensaml.messaging.context.MessageContext;
-import org.opensaml.profile.action.ActionSupport;
-import org.opensaml.profile.action.EventIds;
-import org.opensaml.profile.context.ProfileRequestContext;
-import org.slf4j.Logger;
-
-import com.nimbusds.openid.connect.sdk.UserInfoRequest;
-
-import net.shibboleth.idp.plugin.oidc.op.messaging.context.OIDCAuthenticationResponseContext;
-import net.shibboleth.oidc.metadata.context.OIDCMetadataContext;
-import net.shibboleth.shared.primitive.LoggerFactory;
-
-/**
- * 
- * Abstract class for actions performing actions on {@link OIDCMetadataContext} located under
- * {@link ProfileRequestContext#getInboundMessageContext()}. Extends base classes that offer actions on
- * {@link UserInfoRequest} found via {@link ProfileRequestContext#getInboundMessageContext()} and
- * {@link MessageContext#getMessage()} and on {@link OIDCAuthenticationResponseContext} located under
- * {@link ProfileRequestContext#getOutboundMessageContext()}.
- */
-abstract public class AbstractOIDCUserInfoResponseAction extends AbstractOIDCUserInfoValidationResponseAction {
-
-    /** Class logger. */
-    @Nonnull
-    private Logger log = LoggerFactory.getLogger(AbstractOIDCUserInfoResponseAction.class);
-
-    /** OIDC Metadata context. */
-    @Nullable
-    private OIDCMetadataContext oidcMetadataContext;
-
-    /**
-     * Returns the OIDC Metadata context.
-     * 
-     * @return The OIDC Metadata context.
-     */
-    @Nullable public OIDCMetadataContext getMetadataContext() {
-        return oidcMetadataContext;
-    }
-
-    /** {@inheritDoc} */
-    @Override
-    protected boolean doPreExecute(@Nonnull final ProfileRequestContext profileRequestContext) {
-
-        if (!super.doPreExecute(profileRequestContext)) {
-            return false;
-        }
-        oidcMetadataContext =
-                profileRequestContext.ensureInboundMessageContext().getSubcontext(OIDCMetadataContext.class);
-        if (oidcMetadataContext == null) {
-            log.error("{} No metadata found for relying party", getLogPrefix());
-            ActionSupport.buildEvent(profileRequestContext, EventIds.INVALID_MSG_CTX);
-            return false;
-        }
-        return true;
-    }
-
-}
diff --git a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/stolen/AbstractOIDCUserInfoValidationResponseAction.java b/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/stolen/AbstractOIDCUserInfoValidationResponseAction.java
deleted file mode 100644
index 1852220..0000000
--- a/openid-vci-impl/src/main/java/org/geant/shibboleth/plugin/openidvci/profile/impl/stolen/AbstractOIDCUserInfoValidationResponseAction.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *    http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-// TODO: This abstract class is copied as is from shibboleth project. Refactoring needed.
-
-package org.geant.shibboleth.plugin.openidvci.profile.impl.stolen;
-
-import javax.annotation.Nonnull;
-import javax.annotation.Nullable;
-
-import org.opensaml.messaging.context.MessageContext;
-import org.opensaml.profile.action.ActionSupport;
-import org.opensaml.profile.action.EventIds;
-import org.opensaml.profile.context.ProfileRequestContext;
-import org.slf4j.Logger;
-
-import com.nimbusds.openid.connect.sdk.UserInfoRequest;
-
-import net.shibboleth.idp.plugin.oidc.op.messaging.context.OIDCAuthenticationResponseContext;
-import net.shibboleth.shared.primitive.LoggerFactory;
-
-/**
- * 
- * Abstract class for actions performing actions on {@link OIDCAuthenticationResponseContext} located under
- * {@link ProfileRequestContext#getOutboundMessageContext()}. Extends base class that offers actions on
- * {@link UserInfoRequest} found via {@link ProfileRequestContext#getInboundMessageContext()} and
- * {@link MessageContext#getMessage()}.
- */
-abstract public class AbstractOIDCUserInfoValidationResponseAction extends AbstractOIDCUserInfoRequestAction {
-
-    /** Class logger. */
-    @Nonnull
-    private Logger log = LoggerFactory.getLogger(AbstractOIDCUserInfoValidationResponseAction.class);
-
-    /** oidc response context. */
-    @Nullable
-    private OIDCAuthenticationResponseContext oidcResponseContext;
-
-    /**
-     * Returns oidc response context.
-     * 
-     * @return ctx.
-     */
-    @Nullable
-    public OIDCAuthenticationResponseContext getOidcResponseContext() {
-        return oidcResponseContext;
-    }
-
-    /** {@inheritDoc} */
-    @Override
-    protected boolean doPreExecute(@Nonnull final ProfileRequestContext profileRequestContext) {
-
-        if (!super.doPreExecute(profileRequestContext)) {
-            return false;
-        }
-        final MessageContext outboundMessageCtx = profileRequestContext.getOutboundMessageContext();
-        if (outboundMessageCtx == null) {
-            log.error("{} No outbound message context", getLogPrefix());
-            ActionSupport.buildEvent(profileRequestContext, EventIds.INVALID_MSG_CTX);
-            return false;
-        }
-        oidcResponseContext = outboundMessageCtx.getSubcontext(OIDCAuthenticationResponseContext.class);
-        if (oidcResponseContext == null) {
-            log.error("{} No oidc response context", getLogPrefix());
-            ActionSupport.buildEvent(profileRequestContext, EventIds.INVALID_MSG_CTX);
-            return false;
-        }
-        return true;
-    }
-
-}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list