com.ibm.connector2.cics

Class OpenIDConnectJWTRetriever

  • java.lang.Object
    • com.ibm.connector2.cics.OpenIDConnectJWTRetriever


  • public class OpenIDConnectJWTRetriever
    extends java.lang.Object
    Retrieves JWT tokens from OpenID Connect providers only.

    This class supports the following platforms:

    • WebSphere Liberty - Uses PropagationHelper API via reflection
    • Open Liberty - Uses Subject populated by openidConnectClient feature
    • WebSphere Traditional 9.0+ - Uses PropagationHelper API via reflection

    Important: This implementation does NOT include generic fallback mechanisms. It only retrieves tokens from OpenID Connect providers, ensuring that all tokens are validated by an Identity Provider (IdP).

    Tokens from the following sources are explicitly excluded:

    • LTPA (WebSphere SSO) - not JWT
    • SAML - XML format, not JWT
    • Basic Authentication - no token
    • Custom JAAS Login Modules - could add unvalidated JWTs
    • JWT from non-OpenID Connect sources - not validated by IdP
    • Kerberos/SPNEGO - binary tickets, not JWT
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.lang.String retrieveJWTToken()
      Retrieves JWT token from OpenID Connect provider.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OpenIDConnectJWTRetriever

        public OpenIDConnectJWTRetriever()
    • Method Detail

      • retrieveJWTToken

        public static java.lang.String retrieveJWTToken()
        Retrieves JWT token from OpenID Connect provider.

        This method attempts to retrieve a JWT token in the following order:

        1. WebSphere Liberty/Traditional PropagationHelper (if available)
        2. Open Liberty Subject (if PropagationHelper not available)

        If OpenID Connect is not configured or no token is available from OpenID Connect sources, this method returns null. It does NOT fall back to generic JAAS Subject searching or other token sources.

        Returns:
        JWT token string from OpenID Connect provider, or null if not available from OpenID Connect

©Copyright IBM Corp. 1994, 2025


Legal