Class CMConfig
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.cm.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
getDefaultRefreshTokenLifetime()
For client registrations, if there is no refresh token lifetime given in the request,this is what should be done.String
getEndpoint()
void
setDefaultRefreshTokenLifetime(Long defaultRefreshTokenLifetime)
void
setEndpoint(String endpoint)
String
toString()
-
-
-
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) orOA2Client.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)
-
-