Class OAuthClient

    • Constructor Detail

      • OAuthClient

        public OAuthClient()
        Instantiates a new o auth client.
    • Method Detail

      • isSecretRequired

        public boolean isSecretRequired()
        Client secret is required when provided.
        Returns:
        true, if is secret required
      • isScoped

        public boolean isScoped()
      • setScopes

        public void setScopes​(Set<String> scopes)
        Sets the scopes.
        Parameters:
        scopes - the new scopes
      • getAuthorizedGrantTypes

        public Set<String> getAuthorizedGrantTypes()
      • getRegisteredRedirectUri

        public Set<String> getRegisteredRedirectUri()
      • getAuthorities

        public Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
      • getAccessTokenValiditySeconds

        public Integer getAccessTokenValiditySeconds()
      • getRefreshTokenValiditySeconds

        public Integer getRefreshTokenValiditySeconds()
      • isAutoApprove

        public boolean isAutoApprove​(String scope)
      • getFullName

        public String getFullName()
        Description copied from class: AclSid
        Subclasses should override this method and return a sensible display name for the SID.
        Overrides:
        getFullName in class AclSid
        Returns:
        SID full name
      • setRuntimeAuthorities

        public void setRuntimeAuthorities​(List<org.springframework.security.core.GrantedAuthority> authorities)
        Set the actual authorities to use at runtime. See runtimeAuthorities.
        Parameters:
        authorities - the new runtime authorities