Class ClaimSourceConfigConverter
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.claims.qdl.ClaimSourceConfigConverter
-
- All Implemented Interfaces:
CSConstants
public class ClaimSourceConfigConverter extends Object implements CSConstants
The claim source configurations made for QDL are really just the barebones defaults. The actual configurations are large and sometimes nastily complex Java objects, so this configuration will convert a stem variable to an actual usableClaimSourceConfiguration
on a type by type basis.
NOTE it is assumed that the argument has been properly created. That is why this is not a QDL function.Created by Jeff Gaynor
on 2/10/20 at 3:10 PM
-
-
Field Summary
-
Fields inherited from interface edu.uiuc.ncsa.myproxy.oa4mp.qdl.claims.CSConstants
CS_CODE_JAVA_CLASS, CS_DEFAULT_CLAIM_NAME_KEY, CS_DEFAULT_FAIL_ON_ERROR, CS_DEFAULT_ID, CS_DEFAULT_ID_VALUE, CS_DEFAULT_IS_ENABLED, CS_DEFAULT_NAME, CS_DEFAULT_NOTIFY_ON_FAIL, CS_DEFAULT_TYPE, CS_FILE_CLAIM_KEY, CS_FILE_FILE_PATH, CS_FILE_STEM_CLAIMS, CS_HEADERS_PREFIX, CS_LDAP_ADDITIONAL_FILTER, CS_LDAP_AUTHZ_TYPE, CS_LDAP_CONTEXT_NAME, CS_LDAP_GROUP_NAMES, CS_LDAP_LISTS, CS_LDAP_PASSWORD, CS_LDAP_PORT, CS_LDAP_RENAME, CS_LDAP_SEARCH_ATTRIBUTES, CS_LDAP_SEARCH_BASE, CS_LDAP_SEARCH_FILTER_ATTRIBUTE, CS_LDAP_SEARCH_NAME, CS_LDAP_SEARCH_SCOPE, CS_LDAP_SECURITY_PRINCIPAL, CS_LDAP_SERVER_ADDRESS, CS_TYPE_BASIC, CS_TYPE_CODE, CS_TYPE_FILE, CS_TYPE_HEADERS, CS_TYPE_LDAP, CS_TYPE_NCSA, CS_USE_DEFAULT_KEY
-
-
Constructor Summary
Constructors Constructor Description ClaimSourceConfigConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static edu.uiuc.ncsa.qdl.variables.QDLStem
convert(ClaimSource claimsSource, String type)
Takes aClaimSource
, grabs it configuration and turns it in to a stem variable.static ClaimSourceConfiguration
convert(edu.uiuc.ncsa.qdl.variables.QDLStem arg)
Takes a stem variable of the configuration and returns aClaimSourceConfiguration
object.protected static void
setDefaultsinCfg(edu.uiuc.ncsa.qdl.variables.QDLStem arg, ClaimSourceConfiguration cfg)
protected static void
setDefaultsInStem(ClaimSourceConfiguration cfg, edu.uiuc.ncsa.qdl.variables.QDLStem arg)
-
-
-
Method Detail
-
convert
public static edu.uiuc.ncsa.qdl.variables.QDLStem convert(ClaimSource claimsSource, String type)
Takes aClaimSource
, grabs it configuration and turns it in to a stem variable. This is used to pass back configurations to scripts.- Parameters:
claimsSource
-type
-- Returns:
-
convert
public static ClaimSourceConfiguration convert(edu.uiuc.ncsa.qdl.variables.QDLStem arg)
Takes a stem variable of the configuration and returns aClaimSourceConfiguration
object.- Parameters:
arg
-- Returns:
-
setDefaultsinCfg
protected static void setDefaultsinCfg(edu.uiuc.ncsa.qdl.variables.QDLStem arg, ClaimSourceConfiguration cfg)
-
setDefaultsInStem
protected static void setDefaultsInStem(ClaimSourceConfiguration cfg, edu.uiuc.ncsa.qdl.variables.QDLStem arg)
-
-