|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfedora.server.security.BESecurityConfig
public class BESecurityConfig
Security configuration for backend services.
| Constructor Summary | |
|---|---|
BESecurityConfig()
Create an empty BESecurityConfig with an empty map of BMechRoleConfigs and null values for
everything else. |
|
| Method Summary | |
|---|---|
void |
addEmptyConfigs(java.util.Map pidToMethodList)
Add empty bMech and method configurations given by the map if they are not already already defined. |
static BESecurityConfig |
fromStream(java.io.InputStream in)
Instantiate a BESecurityConfig from an XML stream. |
java.util.SortedMap<java.lang.String,BMechRoleConfig> |
getBMechConfigs()
Get the mutable, sorted, PID-keyed map of BMechRoleConfigs. |
DefaultRoleConfig |
getDefaultConfig()
Get the default role configuration. |
java.lang.Boolean |
getEffectiveInternalBasicAuth()
Get whether basic auth is effectively used for Fedora-to-self calls. |
java.lang.String[] |
getEffectiveInternalIPList()
Get the effective list of internal IP addresses. |
java.lang.String |
getEffectiveInternalPassword()
Get the effective internal password for basic auth Fedora-to-self calls. |
java.lang.Boolean |
getEffectiveInternalSSL()
Get whether SSL is effectively used for Fedora-to-self calls. |
java.lang.String |
getEffectiveInternalUsername()
Get the effective internal username for basic auth Fedora-to-self calls. |
java.lang.Boolean |
getInternalBasicAuth()
Get whether basic auth should be used for Fedora-to-self calls. |
java.lang.String[] |
getInternalIPList()
Get the list of internal IP addresses. |
java.lang.String |
getInternalPassword()
Get the internal password. |
java.lang.Boolean |
getInternalSSL()
Get whether SSL should be used for Fedora-to-self calls. |
java.lang.String |
getInternalUsername()
Get the internal username. |
void |
setDefaultConfig(DefaultRoleConfig config)
Set the default role configuration. |
void |
setInternalBasicAuth(java.lang.Boolean value)
Set whether basic auth is used for Fedora-to-self calls. |
void |
setInternalIPList(java.lang.String[] ips)
Set the list of internal IP addresses. |
void |
setInternalPassword(java.lang.String password)
Set the internal password. |
void |
setInternalSSL(java.lang.Boolean value)
Set whether SSL is used for Fedora-to-self calls. |
void |
setInternalUsername(java.lang.String username)
Set the internal username. |
void |
toStream(boolean skipNonOverrides,
java.io.OutputStream out)
Serialize to the given stream, closing it when finished. |
void |
write(boolean skipNonOverrides,
boolean withXMLDeclaration,
java.io.PrintWriter writer)
Serialize to the given writer, keeping it open when finished. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BESecurityConfig()
BMechRoleConfigs and null values for
everything else.
| Method Detail |
|---|
public DefaultRoleConfig getDefaultConfig()
public void setDefaultConfig(DefaultRoleConfig config)
public java.lang.Boolean getInternalSSL()
public java.lang.Boolean getEffectiveInternalSSL()
public void setInternalSSL(java.lang.Boolean value)
public java.lang.Boolean getInternalBasicAuth()
public java.lang.Boolean getEffectiveInternalBasicAuth()
public void setInternalBasicAuth(java.lang.Boolean value)
public java.lang.String getInternalUsername()
public java.lang.String getEffectiveInternalUsername()
public void setInternalUsername(java.lang.String username)
public java.lang.String getInternalPassword()
public java.lang.String getEffectiveInternalPassword()
public void setInternalPassword(java.lang.String password)
public java.lang.String[] getInternalIPList()
public java.lang.String[] getEffectiveInternalIPList()
public void setInternalIPList(java.lang.String[] ips)
public java.util.SortedMap<java.lang.String,BMechRoleConfig> getBMechConfigs()
BMechRoleConfigs.
public void addEmptyConfigs(java.util.Map pidToMethodList)
public static BESecurityConfig fromStream(java.io.InputStream in)
throws java.lang.Exception
BESecurityConfig from an XML stream.
java.lang.Exception
public void toStream(boolean skipNonOverrides,
java.io.OutputStream out)
throws java.lang.Exception
java.lang.Exception
public void write(boolean skipNonOverrides,
boolean withXMLDeclaration,
java.io.PrintWriter writer)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||