Class OA2ClientEnvironment

    • Constructor Detail

      • OA2ClientEnvironment

        public OA2ClientEnvironment()
      • OA2ClientEnvironment

        public OA2ClientEnvironment​(URI accessTokenUri,
                                    URI authorizationUri,
                                    URI callback,
                                    long certLifetime,
                                    String clientId,
                                    DelegationService delegationService,
                                    URI resourceServerUri,
                                    TokenForge tokenForge,
                                    AssetStore assetStore,
                                    boolean showRedirectPage,
                                    String errorPagePath,
                                    String redirectPagePath,
                                    String successPagePath,
                                    boolean oidcEnabled,
                                    boolean showIDToken,
                                    boolean useBasicAuth,
                                    URI deviceAuthorizationUri,
                                    URI issuer,
                                    edu.uiuc.ncsa.security.core.util.MetaDebugUtil metaDebugUtil,
                                    String kid,
                                    edu.uiuc.ncsa.security.util.jwk.JSONWebKeys jwks)
      • OA2ClientEnvironment

        public OA2ClientEnvironment​(edu.uiuc.ncsa.security.core.util.MyLoggingFacade logger,
                                    Map<String,​String> constants,
                                    URI accessTokenUri,
                                    URI authorizationUri,
                                    URI callback,
                                    URI resourceServerUri,
                                    long certLifetime,
                                    String clientId,
                                    String skin,
                                    boolean enableAssetCleanup,
                                    long maxAssetLifetime,
                                    long keypairLifetime,
                                    AssetProvider assetProvider,
                                    javax.inject.Provider<Client> clientProvider,
                                    javax.inject.Provider<TokenForge> tokenForgeProvider,
                                    javax.inject.Provider<DelegationService> delegationServiceProvider,
                                    javax.inject.Provider<AssetStore> assetStoreProvider,
                                    boolean showRedirectPage,
                                    String errorPagePath,
                                    String redirectPagePath,
                                    String successPagePath,
                                    String secret,
                                    String kid,
                                    edu.uiuc.ncsa.security.util.jwk.JSONWebKeys jwks,
                                    Collection<String> scopes,
                                    String wellKnownURI,
                                    boolean oidcEnabled,
                                    boolean showIDToken,
                                    boolean useBasicAuth,
                                    Map<String,​List<String>> additionalParameters,
                                    URI deviceAuthorizationUri,
                                    URI issuer,
                                    edu.uiuc.ncsa.security.core.util.MetaDebugUtil metaDebugUtil)
    • Method Detail

      • getIssuer

        public URI getIssuer()
      • setIssuer

        public void setIssuer​(URI issuer)
      • getDeviceAuthorizationUri

        public URI getDeviceAuthorizationUri()
      • setDeviceAuthorizationUri

        public void setDeviceAuthorizationUri​(URI deviceAuthorizationUri)
      • setAdditionalParameters

        public void setAdditionalParameters​(Map<String,​List<String>> additionalParameters)
      • isUseBasicAuth

        public boolean isUseBasicAuth()
      • hasScopes

        public boolean hasScopes()
      • scopesToString

        public String scopesToString​(Collection<String> scopes)
        Convert any (Java) collection of strings to a scope.
        Parameters:
        scopes -
        Returns:
      • scopesToString

        public String scopesToString()
        Convert the client's configured scopes to a string. If there are additional scopes, you will have to add those or just send all your scopes to scopesToString(Collection).
        Returns:
      • getWellKnownURI

        public String getWellKnownURI()
      • isOidcEnabled

        public boolean isOidcEnabled()
      • isShowIDToken

        public boolean isShowIDToken()
        If the user enables showing the ID token, then information to be displayed on the success page will be put in to the response.
        Returns:
      • getMetaDebugUtil

        public edu.uiuc.ncsa.security.core.util.MetaDebugUtil getMetaDebugUtil()
      • setMetaDebugUtil

        public void setMetaDebugUtil​(edu.uiuc.ncsa.security.core.util.MetaDebugUtil metaDebugUtil)