Class CM7591Config
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.cm.CMConfig
-
- org.oa4mp.server.loader.oauth2.cm.CM7591Config
-
public class CM7591Config extends CMConfig
Configuration object for RFC 7591 (dynamic client registration) support. This operates at the server level, not as an attribute of a given client. See the online documentation for details. A simple, global level template is available.Created by Jeff Gaynor
on 8/21/21 at 4:58 PM
-
-
Field Summary
Fields Modifier and Type Field Description boolean
anonymousOK
boolean
autoApprove
String
autoApproverName
edu.uiuc.ncsa.security.core.Identifier
template
-
Fields inherited from class org.oa4mp.server.loader.oauth2.cm.CMConfig
enabled, isConfigured, protocol, uri
-
-
Constructor Summary
Constructors Constructor Description CM7591Config()
CM7591Config(String protocol, URI uri, boolean enabled, edu.uiuc.ncsa.security.core.Identifier template, boolean anonymousOK, boolean autoApprove)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkAllowedDomain(List<String> allowedDomains, String host)
returns true if the host is on the allowed list.boolean
checkAnonymousDomain(String host)
boolean
checkAutoApproveDomain(String host)
List<String>
getAllowedAnonymousDomains()
If this list has any elements, then requests for anonymous clients must originate at one of the domains on this list.List<String>
getAllowedAutoApproveDomains()
Anonymous client requests from this domain will be auto-approved.void
setAllowedAnonymousDomains(List<String> allowedAnonymousDomains)
void
setAllowedAutoApproveDomains(List<String> allowedAutoApproveDomains)
String
toString()
-
Methods inherited from class org.oa4mp.server.loader.oauth2.cm.CMConfig
getDefaultRefreshTokenLifetime, getEndpoint, setDefaultRefreshTokenLifetime, setEndpoint
-
-
-
-
Field Detail
-
template
public edu.uiuc.ncsa.security.core.Identifier template
-
anonymousOK
public boolean anonymousOK
-
autoApprove
public boolean autoApprove
-
autoApproverName
public String autoApproverName
-
-
Method Detail
-
getAllowedAnonymousDomains
public List<String> getAllowedAnonymousDomains()
If this list has any elements, then requests for anonymous clients must originate at one of the domains on this list. Default is a *, which means allow all.- Returns:
-
setAllowedAnonymousDomains
public void setAllowedAnonymousDomains(List<String> allowedAnonymousDomains)
-
getAllowedAutoApproveDomains
public List<String> getAllowedAutoApproveDomains()
Anonymous client requests from this domain will be auto-approved. The default is that no clients are approved, i.e. it is empty.- Returns:
-
setAllowedAutoApproveDomains
public void setAllowedAutoApproveDomains(List<String> allowedAutoApproveDomains)
-
checkAnonymousDomain
public boolean checkAnonymousDomain(String host) throws UnknownHostException
- Throws:
UnknownHostException
-
checkAutoApproveDomain
public boolean checkAutoApproveDomain(String host) throws UnknownHostException
- Throws:
UnknownHostException
-
checkAllowedDomain
protected boolean checkAllowedDomain(List<String> allowedDomains, String host) throws UnknownHostException
returns true if the host is on the allowed list.- Parameters:
allowedDomains
-host
-- Returns:
- Throws:
UnknownHostException
-
-