Class CMConfigs
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,CMConfig>
-
- org.oa4mp.server.loader.oauth2.cm.CMConfigs
-
- All Implemented Interfaces:
ClientManagementConstants
,Serializable
,Cloneable
,Map<String,CMConfig>
public class CMConfigs extends HashMap<String,CMConfig> implements ClientManagementConstants
Created by Jeff Gaynor
on 7/25/19 at 1:44 PM- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Field Summary
-
Fields inherited from interface edu.uiuc.ncsa.myproxy.oa4mp.oauth2.cm.ClientManagementConstants
API_TAG, CLIENT_MANAGEMENT_TAG, DEFAULT_OA4MP_ENDPOINT, DEFAULT_RFC7591_ENDPOINT, ENABLE_SERVICE, ENDPOINT_ATTRIBUTE, FULL_URL_ATTRIBUTE, OA4MP_VALUE, PROTOCOL_ATTRIBUTE, RFC_7591_ANONYMOUS_OK, RFC_7591_AUTO_APPROVE, RFC_7591_AUTO_APPROVER_NAME, RFC_7591_TEMPLATE, RFC_7591_VALUE, RFC_7592_VALUE
-
-
Constructor Summary
Constructors Constructor Description CMConfigs()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static CM7591Config
create7591ConfigEntry(String protocol, String serverAddress, String endpoint, String rawURI, String enabled, String templateIdentifier, String rawAnonymousOK, String rawAutoApprove, String rawAutoApproverName)
protected static CMConfig
createConfigEntry(String protocol, String serverAddress, String endpoint, String rawURI, String enabled)
Create and entry from a bunch of strings.static CMConfig
createConfigEntry(String protocol, String serverAddress, String endpoint, String rawURI, String enabled, String templateIdentifier, String rawAnonymousOK, String rawAutoApprove, String rawAutoApproverName)
protected static URI
createURIFromProtocol(String protocol, String rawAddress, String endpoint, String rawURI)
CMConfig
getOA4MPConfig()
CM7591Config
getRFC7591Config()
CMConfig
getRFC7592Config()
boolean
hasOA4MPConfig()
boolean
hasRFC7591Config()
boolean
hasRFC7592Config()
boolean
isEnabled()
Globally enables or disables this entire facility.CMConfig
put(CMConfig cmEntry)
void
setEnabled(boolean enabled)
-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled()
Globally enables or disables this entire facility.- Returns:
-
setEnabled
public void setEnabled(boolean enabled)
-
createConfigEntry
protected static CMConfig createConfigEntry(String protocol, String serverAddress, String endpoint, String rawURI, String enabled)
Create and entry from a bunch of strings. This is a factory method.- Parameters:
protocol
-serverAddress
-endpoint
-rawURI
-enabled
-- Returns:
-
createConfigEntry
public static CMConfig createConfigEntry(String protocol, String serverAddress, String endpoint, String rawURI, String enabled, String templateIdentifier, String rawAnonymousOK, String rawAutoApprove, String rawAutoApproverName)
-
create7591ConfigEntry
protected static CM7591Config create7591ConfigEntry(String protocol, String serverAddress, String endpoint, String rawURI, String enabled, String templateIdentifier, String rawAnonymousOK, String rawAutoApprove, String rawAutoApproverName)
-
createURIFromProtocol
protected static URI createURIFromProtocol(String protocol, String rawAddress, String endpoint, String rawURI)
-
getOA4MPConfig
public CMConfig getOA4MPConfig()
-
getRFC7591Config
public CM7591Config getRFC7591Config()
-
getRFC7592Config
public CMConfig getRFC7592Config()
-
hasOA4MPConfig
public boolean hasOA4MPConfig()
-
hasRFC7591Config
public boolean hasRFC7591Config()
-
hasRFC7592Config
public boolean hasRFC7592Config()
-
-