Class CMConfig

  • Direct Known Subclasses:
    CM7591Config

    public class CMConfig
    extends Object
    Entry for the Client management configuration map. A client management configuration consists of a protocol (such as rfc7591 or oa4mp), whether it is enabled and the full url to the service. Note that at load time, the configuration entry could either specify the full url or it may just specify the endpoint and use the address the service is configured with.

    Created by Jeff Gaynor
    on 7/25/19 at 1:42 PM

    • Field Detail

      • protocol

        public String protocol
      • uri

        public URI uri
      • enabled

        public boolean enabled
        The last component of the uri. This is set as a convenience since it is used for determining the requested version of this API.
      • isConfigured

        public boolean isConfigured
    • Constructor Detail

      • CMConfig

        public CMConfig()
      • CMConfig

        public CMConfig​(String protocol,
                        URI uri,
                        boolean enabled)
    • Method Detail

      • getEndpoint

        public String getEndpoint()
      • setEndpoint

        public void setEndpoint​(String endpoint)
      • getDefaultRefreshTokenLifetime

        public Long getDefaultRefreshTokenLifetime()
        For client registrations, if there is no refresh token lifetime given in the request,this is what should be done. The reasonable options are 0 (disable, so no refresh tokens unless a client specifically requests one) or OA2Client.USE_SERVER_DEFAULT to use the server default lifetime.

        For updates, this is the behavior if the refresh token lifetime is removed from the request. Some installs may want, e.g. to have remove = disable, some may want remove = server default.
        Returns:
      • setDefaultRefreshTokenLifetime

        public void setDefaultRefreshTokenLifetime​(Long defaultRefreshTokenLifetime)