org.fcrepo.server.security
Class AbstractRoleConfig

java.lang.Object
  extended by org.fcrepo.server.security.AbstractRoleConfig
All Implemented Interfaces:
BERoleConfig
Direct Known Subclasses:
DefaultRoleConfig, MethodRoleConfig, ServiceDeploymentRoleConfig

public abstract class AbstractRoleConfig
extends Object
implements BERoleConfig

Abstract implementation of BERoleConfig. Concrete implementations must override getRole().

Author:
Chris Wilper

Constructor Summary
protected AbstractRoleConfig(BERoleConfig parent)
           
 
Method Summary
 Boolean getCallbackBasicAuth()
          Get whether backend callbacks for this role require basic auth.
 Boolean getCallbackSSL()
          Get whether backend callbacks for this role require SSL.
 Boolean getCallBasicAuth()
          Get whether backend calls for this role will use basic auth.
 String getCallPassword()
          Get the basicauth password for backend calls for this role.
 Boolean getCallSSL()
          Get whether backend calls for this role will SSL.
 String getCallUsername()
          Get the basicauth username for backend calls for this role.
 Boolean getEffectiveCallbackBasicAuth()
           
 Boolean getEffectiveCallbackSSL()
           
 Boolean getEffectiveCallBasicAuth()
           
 String getEffectiveCallPassword()
           
 Boolean getEffectiveCallSSL()
           
 String getEffectiveCallUsername()
           
 String[] getEffectiveIPList()
           
 String[] getIPList()
          Get the list of IP addresses that are allowed to make back-end callbacks to Fedora using this role.
abstract  String getRole()
          Get the name of the role this configuration applies to.
 void setCallbackBasicAuth(Boolean value)
          Set whether backend callbacks for this role require basic auth.
 void setCallbackSSL(Boolean value)
          Set whether backend callbacks for this role require SSL.
 void setCallBasicAuth(Boolean value)
          Set whether backend calls for this role will use basic auth.
 void setCallPassword(String pass)
          Set the basicauth password for backend calls for this role.
 void setCallSSL(Boolean value)
          Set whether backend calls for this role will SSL.
 void setCallUsername(String user)
          Set the basicauth username for backend calls for this role.
 void setIPList(String[] ips)
          Set the list of IP addresses that are allowed to make back-end callbacks to Fedora using this role.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractRoleConfig

protected AbstractRoleConfig(BERoleConfig parent)
Method Detail

getRole

public abstract String getRole()
Description copied from interface: BERoleConfig
Get the name of the role this configuration applies to.

Specified by:
getRole in interface BERoleConfig

getIPList

public String[] getIPList()
Description copied from interface: BERoleConfig
Get the list of IP addresses that are allowed to make back-end callbacks to Fedora using this role. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means no restriction.

Specified by:
getIPList in interface BERoleConfig

getEffectiveIPList

public String[] getEffectiveIPList()
Specified by:
getEffectiveIPList in interface BERoleConfig

setIPList

public void setIPList(String[] ips)
Description copied from interface: BERoleConfig
Set the list of IP addresses that are allowed to make back-end callbacks to Fedora using this role. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means no restriction.

Specified by:
setIPList in interface BERoleConfig

getCallbackBasicAuth

public Boolean getCallbackBasicAuth()
Description copied from interface: BERoleConfig
Get whether backend callbacks for this role require basic auth. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means the effective value is false.

Specified by:
getCallbackBasicAuth in interface BERoleConfig

getEffectiveCallbackBasicAuth

public Boolean getEffectiveCallbackBasicAuth()
Specified by:
getEffectiveCallbackBasicAuth in interface BERoleConfig

setCallbackBasicAuth

public void setCallbackBasicAuth(Boolean value)
Description copied from interface: BERoleConfig
Set whether backend callbacks for this role require basic auth. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means the effective value is false.

Specified by:
setCallbackBasicAuth in interface BERoleConfig

getCallbackSSL

public Boolean getCallbackSSL()
Description copied from interface: BERoleConfig
Get whether backend callbacks for this role require SSL. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means the effective value is false.

Specified by:
getCallbackSSL in interface BERoleConfig

getEffectiveCallbackSSL

public Boolean getEffectiveCallbackSSL()
Specified by:
getEffectiveCallbackSSL in interface BERoleConfig

setCallbackSSL

public void setCallbackSSL(Boolean value)
Description copied from interface: BERoleConfig
Set whether backend callbacks for this role require SSL. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means the effective value is false.

Specified by:
setCallbackSSL in interface BERoleConfig

getCallBasicAuth

public Boolean getCallBasicAuth()
Description copied from interface: BERoleConfig
Get whether backend calls for this role will use basic auth. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means the effective value is false.

Specified by:
getCallBasicAuth in interface BERoleConfig

getEffectiveCallBasicAuth

public Boolean getEffectiveCallBasicAuth()
Specified by:
getEffectiveCallBasicAuth in interface BERoleConfig

setCallBasicAuth

public void setCallBasicAuth(Boolean value)
Description copied from interface: BERoleConfig
Set whether backend calls for this role will use basic auth. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means the effective value is false.

Specified by:
setCallBasicAuth in interface BERoleConfig

getCallSSL

public Boolean getCallSSL()
Description copied from interface: BERoleConfig
Get whether backend calls for this role will SSL. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means the effective value is false.

Specified by:
getCallSSL in interface BERoleConfig

getEffectiveCallSSL

public Boolean getEffectiveCallSSL()
Specified by:
getEffectiveCallSSL in interface BERoleConfig

setCallSSL

public void setCallSSL(Boolean value)
Description copied from interface: BERoleConfig
Set whether backend calls for this role will SSL. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means the effective value is false.

Specified by:
setCallSSL in interface BERoleConfig

getCallUsername

public String getCallUsername()
Description copied from interface: BERoleConfig
Get the basicauth username for backend calls for this role. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means unspecified.

Specified by:
getCallUsername in interface BERoleConfig

getEffectiveCallUsername

public String getEffectiveCallUsername()
Specified by:
getEffectiveCallUsername in interface BERoleConfig

setCallUsername

public void setCallUsername(String user)
Description copied from interface: BERoleConfig
Set the basicauth username for backend calls for this role. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means unspecified.

Specified by:
setCallUsername in interface BERoleConfig

getCallPassword

public String getCallPassword()
Description copied from interface: BERoleConfig
Get the basicauth password for backend calls for this role. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means unspecified.

Specified by:
getCallPassword in interface BERoleConfig

getEffectiveCallPassword

public String getEffectiveCallPassword()
Specified by:
getEffectiveCallPassword in interface BERoleConfig

setCallPassword

public void setCallPassword(String pass)
Description copied from interface: BERoleConfig
Set the basicauth password for backend calls for this role. For SDep/MethodRoleConfig, null means the effective value is inherited. For DefaultRoleConfig, null means unspecified.

Specified by:
setCallPassword in interface BERoleConfig


Copyright © 2012 DuraSpace. All Rights Reserved.