|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.security.AppConfig
The AppConfig
class is a representation of the configuration of your Java application.
You pass an AppConfig
object into the
security runtime instance when you initialize it. The AppConfig
object is used to configure the
security runtime based upon the
configuration of your application. This object includes a name for the runtime application,
which can be used for monitoring purposes, and it also provides a method for
adding an XML file that contains naming authority definitions.
On initialization of the security runtime instance, the XML file is loaded into the Naming
Authority Manager.
Field Summary | |
static java.lang.String |
PDP_SERVER_FAILBACK_TIMEOUT
|
static java.lang.String |
PDP_SERVER_FAILURE_RETRY_COUNT
|
static java.lang.String |
PDP_SERVER_REQUEST_TIMEOUT
|
Constructor Summary | |
AppConfig()
Constructs an application configuration object with default values. |
|
AppConfig(java.lang.String applicationname)
Constructs an application configuration object and sets the name of the application using the security runtime. |
|
AppConfig(java.lang.String applicationname,
java.util.Properties clientConfig)
Constructs an application configuration object and sets the name of the application using the security runtime. |
Method Summary | |
void |
addNameAuthorityDefinitionFile(java.lang.String filespec)
Adds an xml file that contains naming authority definitions to the configuration object. |
java.lang.String |
getApplicationName()
Gets the name of the application from the configuration object. |
java.lang.String |
getClientUID()
Get unique ID for the PDP Client proxy. |
int |
getFailbackTimeout()
Get failback timeout value set. |
int |
getFailureRetryCount()
Get maximum attempts to try before failing over to an alternate server |
java.util.Properties |
getPDPConfiguration()
Get currentlt set PDPProperties configuration |
java.lang.String[] |
getPolicyDomainURLs()
Get list of policy domains, return comma seperated list of PDP URLs |
int |
getRequestTimeout()
Get request timeout value set. |
java.lang.String |
getServerTransport()
Get configured transport type for the PDP Client. |
java.lang.String |
getSSMConfigID()
Get unique ID for the PDP Client proxy. |
java.lang.String |
getTrustStore()
Get current trust store. |
void |
setApplicationName(java.lang.String applicationname)
Sets the name of the application in this configuration object. |
void |
setClientUID(java.lang.String uid)
Set unique ID for the PDP Client proxy. |
void |
setFailbackTimeout(int timeout)
Set request timeout value, if the client does not have successful connection. |
void |
setFailureRetryCount(int count)
Set maximum attempts to try before failing over to an alternate server |
void |
setPolicyDomainURLs(java.lang.String a_urls)
Set list of policy domains, comma seperated list of PDP URLs |
void |
setPolicyDomainURLs(java.lang.String[] a_urls)
Set list of policy domains, comma seperated list of PDP URLs |
void |
setRequestTimeout(int timeout)
Set request timeout value, if the client does not have successful connection. |
void |
setServerTransport(java.lang.String a_transport)
Set transport to use, could be one of TRANSPORT_TYPE_? |
void |
setServiceControlManagerPort(int port)
Sets the port used by the Service Control Manager. |
void |
setSSMConfigID(java.lang.String configID)
Set configuration ID for the SSM |
void |
setTrustStore(java.lang.String trustStore)
Set the trust store configuration for 1-way ssl configuration; the java option -Djavax.net.ssl.trustStore=c:/demo.jks would overide the call to set |
void |
useConfiguration(java.lang.String configurationname)
Indicate which configurations we need to retrieve from the configuration repository. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static java.lang.String PDP_SERVER_REQUEST_TIMEOUT
public static java.lang.String PDP_SERVER_FAILURE_RETRY_COUNT
public static java.lang.String PDP_SERVER_FAILBACK_TIMEOUT
Constructor Detail |
public AppConfig()
public AppConfig(java.lang.String applicationname, java.util.Properties clientConfig)
applicationname
- the name of the application using this runtime.clientConfig
- properties file with PDPClient Configuration.public AppConfig(java.lang.String applicationname)
applicationname
- the name of the application using this runtime.Method Detail |
public void setApplicationName(java.lang.String applicationname)
applicationname
- the name of the application using this security runtime.public void setServiceControlManagerPort(int port)
port
- the port the SCM listens on for the runtime to get its settings.public void useConfiguration(java.lang.String configurationname)
configurationname
- the name of the configuration to retrieve from the repository.public java.lang.String getApplicationName()
public void addNameAuthorityDefinitionFile(java.lang.String filespec) throws java.io.FileNotFoundException
public void setClientUID(java.lang.String uid)
uid
- Unique PDPProxy Client IDpublic java.lang.String getClientUID()
public void setSSMConfigID(java.lang.String configID)
uid
- Unique PDPProxy Client IDpublic java.lang.String getSSMConfigID()
public void setServerTransport(java.lang.String a_transport)
uid
- Unique PDPProxy Client IDpublic java.lang.String getServerTransport()
public void setPolicyDomainURLs(java.lang.String a_urls)
urls
- comma seperated list of http://host1:port1, http://host2:port2public void setPolicyDomainURLs(java.lang.String[] a_urls)
urls
- comma seperated list of http://host1:port1, http://host2:port2public java.lang.String[] getPolicyDomainURLs()
public void setFailureRetryCount(int count)
count
- max attemptspublic int getFailureRetryCount()
public void setRequestTimeout(int timeout)
ttl
- value in milli secondspublic int getRequestTimeout()
public void setFailbackTimeout(int timeout)
ttl
- value in milli secondspublic int getFailbackTimeout()
public java.util.Properties getPDPConfiguration()
public void setTrustStore(java.lang.String trustStore)
trustStore
- Fully qualified path for the key storepublic java.lang.String getTrustStore()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |