Class OA2ClientLoader<T extends ClientEnvironment>

    • Constructor Detail

      • OA2ClientLoader

        public OA2ClientLoader​(org.apache.commons.configuration.tree.ConfigurationNode node)
      • OA2ClientLoader

        public OA2ClientLoader​(org.apache.commons.configuration.tree.ConfigurationNode node,
                               edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger)
        Constructor to inject a logger.
        Parameters:
        node -
        logger -
    • Method Detail

      • getVersionString

        public String getVersionString()
        Specified by:
        getVersionString in class edu.uiuc.ncsa.security.core.util.LoggingConfigLoader<T extends ClientEnvironment>
      • createInstance

        public T createInstance​(javax.inject.Provider<TokenForge> tokenForgeProvider,
                                javax.inject.Provider<Client> clientProvider,
                                HashMap<String,​String> constants)
        Factory method. Override this to create the actual instance as needed.
        Parameters:
        tokenForgeProvider -
        clientProvider -
        constants -
        Returns:
      • isShowIDToken

        public boolean isShowIDToken()
        Deprecated.
        An option for the (demo) client that specifies that the user should be shown the ID token at some point. Default is false.

        This is really old and was used in OAuth 1.0a demos. It would stop the flow and let the user inspect the id token, then allow the flow to continue. It should probably get tracked down and removed The current default client shows the ID token every time, so this really is not needed.
        Returns:
      • isOIDCEnabled

        public boolean isOIDCEnabled()
      • getErrorPagePath

        protected String getErrorPagePath()
      • getSecret

        public String getSecret()
      • getKID

        public String getKID()
      • getKeysFromFile

        protected edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getKeysFromFile()
        Check if there is a JWK specified as a file
        Returns:
      • getKeysFromString

        protected edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getKeysFromString()
        Check if there is JWK specified directly (as a string of JSON) in the configuration.
        Returns:
      • getJwkUtil

        public edu.uiuc.ncsa.security.util.jwk.JWKUtil2 getJwkUtil()
      • setJwkUtil

        public void setJwkUtil​(edu.uiuc.ncsa.security.util.jwk.JWKUtil2 jwkUtil)
      • getKeys

        public edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getKeys()
      • hasJWKS

        protected boolean hasJWKS()
      • getSuccessPagePath

        protected String getSuccessPagePath()
      • getRedirectPagePath

        protected String getRedirectPagePath()
      • isShowRedirectPage

        protected boolean isShowRedirectPage()
      • createInstance

        public T createInstance()
      • isUseBasicAuth

        public Boolean isUseBasicAuth()
        Deprecated.
        For calls the client makes to the service, use HTTP Basic Authorization rather than passing in the credentials as parameters. Both should be supported, but some other services might only allow for this. This feature is (probably) unused and should be removed at some point.
        Returns:
      • setUseBasicAuth

        public void setUseBasicAuth​(Boolean useBasicAuth)
      • getUIURI

        public URI getUIURI()
      • getDeviceAuthorizationURI

        public URI getDeviceAuthorizationURI()
      • getRFC7009Endpoint

        public URI getRFC7009Endpoint()
      • getRFC7662Endpoint

        public URI getRFC7662Endpoint()