Constants.FedoraHomeACCESS, ACTION, API, ATOM_APIM1_0, ATOM_ZIP1_1, ATOM1_1, AUDIT, AUDIT1_0, BATCH_MODIFY, BATCH_MODIFY1_1, BE_SECURITY, BE_SECURITY1_0, BINDING_SPEC, DATASTREAM, DC, DISSEMINATOR, DS_COMPOSITE_MODEL, DS_COMPOSITE_MODEL1_0, DS_INPUT_SPEC1_0, DS_INPUT_SPEC1_1, ENVIRONMENT, FCFG, FEDORA, FEDORA_APP_CONTEXT_NAME, FEDORA_DEFAULT_APP_CONTEXT, FEDORA_HOME, FEDORA_REPOSITORY_PID, FOXML, FOXML1_0, FOXML1_0_LEGACY, FOXML1_1, HTTP_REQUEST, MANAGEMENT, METHOD_MAP, METS, METS_EXT, METS_EXT1_0, METS_EXT1_0_LEGACY, METS_EXT1_1, MODEL, MULGARA, OAI_DC, OAI_DC2_0, OAI_FRIENDS, OAI_FRIENDS2_0, OAI_IDENTIFIER, OAI_IDENTIFIER2_0, OAI_PMH, OAI_PMH2_0, OAI_PROV, OAI_PROV2_0, OBJ_DATASTREAMS1_0, OBJ_HISTORY1_0, OBJ_ITEMS1_0, OBJ_METHODS1_0, OBJ_PROFILE1_0, OBJ_VALIDATION1_0, OBJECT, OLD_XLINK, PID_LIST1_0, RDF, RDF_XSD, RECOVERY, RELS_EXT, RELS_EXT1_0, RELS_INT1_0, REPO_DESC1_0, RESOURCE, SDEF, SDEF_METHOD_MAP1_0, SDEP, SDEP_METHOD_MAP1_0, SDEP_METHOD_MAP1_1, SERVICE_PROFILE, SOAP, SOAP_ENC, SUBJECT, TYPES, VIEW, WSDL, WSDL_HTTP, WSDL_MIME, XACML_POLICY, XACML_POLICY1_0, XACML1, XACML1_ACTION, XACML1_POLICY, XACML1_RESOURCE, XACML1_SUBJECT, XACML2_POLICY_SCHEMA, XLINK, XML_XSD, XMLNS, XSI| Constructor and Description |
|---|
BESecurityConfig()
Create an empty BESecurityConfig with an empty map of
ServiceDeploymentRoleConfigs and null values for
everything else. |
| Modifier and Type | Method and Description |
|---|---|
void |
addEmptyConfigs(Map pidToMethodList)
Add empty sDep and method configurations given by the map if they are
not already already defined.
|
static BESecurityConfig |
fromStream(InputStream in)
Instantiate a
BESecurityConfig from an XML stream. |
DefaultRoleConfig |
getDefaultConfig()
Get the default role configuration.
|
Boolean |
getEffectiveInternalBasicAuth()
Get whether basic auth is effectively used for Fedora-to-self calls.
|
String[] |
getEffectiveInternalIPList()
Get the effective list of internal IP addresses.
|
String |
getEffectiveInternalPassword()
Get the effective internal password for basic auth Fedora-to-self calls.
|
Boolean |
getEffectiveInternalSSL()
Get whether SSL is effectively used for Fedora-to-self calls.
|
String |
getEffectiveInternalUsername()
Get the effective internal username for basic auth Fedora-to-self calls.
|
Boolean |
getInternalBasicAuth()
Get whether basic auth should be used for Fedora-to-self calls.
|
String[] |
getInternalIPList()
Get the list of internal IP addresses.
|
String |
getInternalPassword()
Get the internal password.
|
Boolean |
getInternalSSL()
Get whether SSL should be used for Fedora-to-self calls.
|
String |
getInternalUsername()
Get the internal username.
|
SortedMap<String,ServiceDeploymentRoleConfig> |
getServiceDeploymentConfigs()
Get the mutable, sorted, PID-keyed map of
ServiceDeploymentRoleConfigs. |
void |
setDefaultConfig(DefaultRoleConfig config)
Set the default role configuration.
|
void |
setInternalBasicAuth(Boolean value)
Set whether basic auth is used for Fedora-to-self calls.
|
void |
setInternalIPList(String[] ips)
Set the list of internal IP addresses.
|
void |
setInternalPassword(String password)
Set the internal password.
|
void |
setInternalSSL(Boolean value)
Set whether SSL is used for Fedora-to-self calls.
|
void |
setInternalUsername(String username)
Set the internal username.
|
void |
toStream(boolean skipNonOverrides,
OutputStream out)
Serialize to the given stream, closing it when finished.
|
void |
write(boolean skipNonOverrides,
boolean withXMLDeclaration,
PrintWriter writer)
Serialize to the given writer, keeping it open when finished.
|
public BESecurityConfig()
ServiceDeploymentRoleConfigs and null values for
everything else.public DefaultRoleConfig getDefaultConfig()
public void setDefaultConfig(DefaultRoleConfig config)
public Boolean getInternalSSL()
public Boolean getEffectiveInternalSSL()
public void setInternalSSL(Boolean value)
public Boolean getInternalBasicAuth()
public Boolean getEffectiveInternalBasicAuth()
public void setInternalBasicAuth(Boolean value)
public String getInternalUsername()
public String getEffectiveInternalUsername()
public void setInternalUsername(String username)
public String getInternalPassword()
public String getEffectiveInternalPassword()
public void setInternalPassword(String password)
public String[] getInternalIPList()
public String[] getEffectiveInternalIPList()
public void setInternalIPList(String[] ips)
public SortedMap<String,ServiceDeploymentRoleConfig> getServiceDeploymentConfigs()
ServiceDeploymentRoleConfigs.public void addEmptyConfigs(Map pidToMethodList)
public static BESecurityConfig fromStream(InputStream in) throws Exception
BESecurityConfig from an XML stream.Exceptionpublic void toStream(boolean skipNonOverrides,
OutputStream out)
throws Exception
Exceptionpublic void write(boolean skipNonOverrides,
boolean withXMLDeclaration,
PrintWriter writer)
Copyright © 2013 DuraSpace. All Rights Reserved.