[java-idp-plugin-oidc-rp] branch main updated: Fix checkstyle

Phil Smart philip.smart at jisc.ac.uk
Fri May 12 07:39:40 UTC 2023


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

philsmart pushed a commit to branch main
in repository java-idp-plugin-oidc-rp.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-oidc-rp.git;a=commit;h=92ec9dec47f6c79a47d3550642f55d41ccfd6bf6

The following commit(s) were added to refs/heads/main by this push:
     new 92ec9de  Fix checkstyle
92ec9de is described below

commit 92ec9dec47f6c79a47d3550642f55d41ccfd6bf6
Author: Phil Smart <philip.smart at jisc.ac.uk>
AuthorDate: Fri May 12 08:39:38 2023 +0100

    Fix checkstyle
---
 .../impl/AccessTokenToPrivateCredentialsMappingStrategy.java   |  4 ++--
 .../AbstractOIDCAuthenticationRequestActionMessageHandler.java | 10 ++++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/idp-oidc-rp-impl/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/impl/AccessTokenToPrivateCredentialsMappingStrategy.java b/idp-oidc-rp-impl/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/impl/AccessTokenToPrivateCredentialsMappingStrategy.java
index 415e1bc..b126beb 100644
--- a/idp-oidc-rp-impl/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/impl/AccessTokenToPrivateCredentialsMappingStrategy.java
+++ b/idp-oidc-rp-impl/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/impl/AccessTokenToPrivateCredentialsMappingStrategy.java
@@ -79,8 +79,8 @@ public class AccessTokenToPrivateCredentialsMappingStrategy
             final AccessToken accessToken = context.getTokenResponse().getTokens().getAccessToken();
             final RefreshToken refreshToken = context.getTokenResponse().getTokens().getRefreshToken();
             
-            final OAuth2AccessTokenPrincipal accessTokenPrincipal = new OAuth2AccessTokenPrincipal(accessToken.getValue(), 
-                    accessToken.getType().getValue(), 
+            final OAuth2AccessTokenPrincipal accessTokenPrincipal = new OAuth2AccessTokenPrincipal(
+                    accessToken.getValue(), accessToken.getType().getValue(), 
                     accessToken.getLifetime() == 0 ? null : Duration.ofSeconds(accessToken.getLifetime()));
             principals.add(accessTokenPrincipal);
             
diff --git a/idp-oidc-rp-impl/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/messaging/impl/AbstractOIDCAuthenticationRequestActionMessageHandler.java b/idp-oidc-rp-impl/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/messaging/impl/AbstractOIDCAuthenticationRequestActionMessageHandler.java
index 2fabbd6..fa895d5 100644
--- a/idp-oidc-rp-impl/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/messaging/impl/AbstractOIDCAuthenticationRequestActionMessageHandler.java
+++ b/idp-oidc-rp-impl/src/main/java/net/shibboleth/idp/plugin/authn/oidc/rp/messaging/impl/AbstractOIDCAuthenticationRequestActionMessageHandler.java
@@ -89,12 +89,22 @@ public abstract class AbstractOIDCAuthenticationRequestActionMessageHandler exte
         relyingPartyContextLookupStrategy = new ChildContextLookup<>(RelyingPartyContext.class);
     }
     
+    /**
+     * Set the HTTP servlet request supplier.
+     * 
+     * @param requestSupplier the supplier.
+     */
     public void setHttpServletRequestSupplier(@Nullable final NonnullSupplier<HttpServletRequest> requestSupplier) {
         ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
 
         httpServletRequestSupplier = requestSupplier;
     }
     
+    /**
+     * Get the HTTP servlet request supplier.
+     * 
+     * @return the HTTP servlet request supplier
+     */
     @Nullable public HttpServletRequest getHttpServletRequest() {
         if (httpServletRequestSupplier == null) {
             return null;

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


More information about the commits mailing list