|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object issrg.pba.management.manager.PManagement.PMAgentReference
public final class PManagement.PMAgentReference
PERMIS agemt reference.
An instance of this class represents a reference to a PERMIS Agent, the agentNumber is the integer used in the PMConfiguration for this agent reference.
Further the connection state is held in this object.
The normal flow of connection state is: "Inactive" -> "Attempt" -> "Active" -> "Finish" -> "Inactive"
The "Failed" state, can happen form: "Attempt", "Active" or "Finish"
And the "Attempt" state, can happen after the "Failed" state.
Field Summary | |
---|---|
static int |
CONNECTION_ACTIVE
|
static int |
CONNECTION_ATTEMPT
|
static int |
CONNECTION_FAILED
|
static int |
CONNECTION_FINISHED
|
static int |
CONNECTION_INACTIVE
|
Method Summary | |
---|---|
java.lang.Integer |
agentNumber()
get the unique integer assigned to this agentReference. |
void |
connect()
connect, make a connection to the PERMIS agent. |
void |
connectStop()
This method instructs the the current connection attempt, to Stop. |
void |
disconnect()
disconnect. |
PMException |
getCommunicationException()
get the last communication exception. |
int |
getConnectionCount()
get the current value of the connection count. |
PMException |
getConnectionException()
get the last connection exception. |
int |
getConnectionState()
Get the state of the connection. |
java.lang.String |
getHost()
Get the host name of where the PERMIS agent is located on the network. |
java.lang.String |
getHostStore()
Get the LDAP or WebDAV host. |
java.lang.String |
getLDAPACName()
Get the LDAP attribute name for ACs. |
java.lang.String |
getLDAPVersion()
Get the LDAP directory Version. |
java.io.File |
getLocalFile()
get the File object that identifies the local file. |
java.lang.String |
getName()
Get the cosmetic name that identifies the Reference to the PERMIS agent. |
PManagement |
getPManagement()
get the PManagement model. |
java.lang.String |
getPolicyName()
Get the current policy name. |
java.lang.String |
getPort()
Get the port number that the PERMIS agent is listening on. |
java.lang.String |
getPortStore()
Get the LDAP or WebDAV port. |
java.lang.String |
getSSLContextProvider()
Get the SSL context provider. |
java.lang.String |
getSSLContextService()
Get the SSL context service. |
java.lang.String |
getSSLEnabledCipherSuites()
Get the SSL enabled cipher suites. |
java.lang.String |
getSSLEnabledProtocols()
Get the SSL enabled protocols. |
java.lang.String |
getSSLSecureRandomNumberProvider()
Get the secure random number provider. |
java.lang.String |
getSSLSecureRandomNumberService()
Get the secure random number service. |
java.lang.String |
getStoreType()
The type of storage used to store the PERMIS Policy. |
java.lang.String |
getUpdatePolicyResponse()
get the update policy response. |
boolean |
isConnectionStateActive()
Is the connection state active. |
boolean |
isConnectionStateAttempt()
Is the connection state attempting connection. |
boolean |
isConnectionStateFailed()
Did the connection fail. |
boolean |
isConnectionStateFinished()
Is the connection state Finished. |
boolean |
isConnectionStateInactive()
Is the connection state Inactive. |
boolean |
isStoreTypeFile()
If the policy exists in the local file store. |
boolean |
isStoreTypeLDAP()
If the policy exists in an LDAP directory. |
boolean |
isStoreTypeTextFile()
Returns true if the policy lives in a text file. |
boolean |
isStoreTypeWebDAV()
If the policy exists in a WebDAV directory. |
boolean |
isUpdatingPolicy()
get the updating policy flag. |
void |
setCommunicationException(PMException communicationExceptionParam)
set the last communication exception. |
void |
setConnectionCount(int connectCountParam)
Update the connection count. |
void |
setHost(java.lang.String value)
Set the host name of where the PERMIS agent is located on the network. |
void |
setHostStore(java.lang.String hostStoreParam)
Set the LDAP or WebDAV host. |
void |
setLDAPACName(java.lang.String ldapACNameParam)
Set the LDAP attribute name for ACs. |
void |
setLDAPVersion(java.lang.String ldapVersionParam)
Set the LDAP directory Version. |
void |
setLocalFile(java.io.File localFileParam)
set the File object that identifies the local file. |
void |
setName(java.lang.String value)
Set the cosmetic name that identifies the reference to the PERMIS agent. |
void |
setPolicyName(java.lang.String policyNameParam)
Set the current policy name. |
void |
setPort(java.lang.String value)
Set the port number that the PERMIS agent is listening on. |
void |
setPortStore(java.lang.String portStoreParam)
Set the LDAP or WebDAV port. |
void |
setSSLContextProvider(java.lang.String value)
Set the SSL context provider. |
void |
setSSLContextService(java.lang.String value)
Set the SSL context service. |
void |
setSSLEnabledCipherSuites(java.lang.String value)
Set the SSL enabled cipher suites. |
void |
setSSLEnabledProtocols(java.lang.String value)
Set the SSL enabled protocols. |
void |
setSSLSecureRandomNumberProvider(java.lang.String value)
Set the secure random number provider. |
void |
setSSLSecureRandomNumberService(java.lang.String value)
Set the secure random number service. |
void |
setStoreTypeFile()
Sets storage type to be the local File. |
void |
setStoreTypeLDAP()
Set the storage type to a remote LDAP directory. |
void |
setStoreTypeTextFile()
Sets storage type to be a local text file. |
void |
setStoreTypeWebDAV()
Set storage type to a remote WebDAV directory. |
void |
updatePolicy()
Fire off the process that actually updates the PERMIS policy associated with the PERMIS agent. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CONNECTION_INACTIVE
public static final int CONNECTION_ATTEMPT
public static final int CONNECTION_ACTIVE
public static final int CONNECTION_FAILED
public static final int CONNECTION_FINISHED
Method Detail |
---|
public java.lang.Integer agentNumber()
public PManagement getPManagement()
public void connect()
if all goes well a PManager is created
a connection object "PMConnect" is created and the run method invoked in a new thread, in order that the calling thread can continue and not have to wait for a process that can take several seconds.
public void disconnect()
public void connectStop()
public int getConnectionState()
public boolean isConnectionStateInactive()
public boolean isConnectionStateAttempt()
public boolean isConnectionStateActive()
public boolean isConnectionStateFinished()
public boolean isConnectionStateFailed()
public void setConnectionCount(int connectCountParam)
connectCountParam
- the current count.public int getConnectionCount()
public PMException getConnectionException()
public java.io.File getLocalFile()
public void setLocalFile(java.io.File localFileParam)
localFileParam
- the Attribute Certificate file
that contains the PERMIS Policypublic java.lang.String getStoreType()
public boolean isStoreTypeFile()
public boolean isStoreTypeLDAP()
public boolean isStoreTypeWebDAV()
public boolean isStoreTypeTextFile()
public void setStoreTypeFile()
public void setStoreTypeTextFile()
public void setStoreTypeLDAP()
public void setStoreTypeWebDAV()
public java.lang.String getPolicyName()
public void setPolicyName(java.lang.String policyNameParam)
policyNameParam
- policy name.public java.lang.String getLDAPACName()
public void setLDAPACName(java.lang.String ldapACNameParam)
ldapACNameParam
- AC attribute name.public java.lang.String getLDAPVersion()
public void setLDAPVersion(java.lang.String ldapVersionParam)
ldapVersionParam
- Version.public java.lang.String getHostStore()
public void setHostStore(java.lang.String hostStoreParam)
hostStoreParam
- host of where the policy is held.public java.lang.String getPortStore()
public void setPortStore(java.lang.String portStoreParam)
portStoreParam
- port of where the policy is held.public PMException getCommunicationException()
public void setCommunicationException(PMException communicationExceptionParam)
communicationExceptionParam
- the last communication exception.public void updatePolicy() throws PMException
PMException
- -
if the state is not right
or the PERMIS agent reports a problempublic boolean isUpdatingPolicy()
public java.lang.String getUpdatePolicyResponse()
public java.lang.String getName()
public void setName(java.lang.String value) throws PMException
value
- the cosmetic name assigned to the PERMIS agent
PMException
- if there is a problem with the name.public java.lang.String getHost()
public void setHost(java.lang.String value) throws PMException
value
- host location of the PERMIS agent
PMException
- if there is a problem with the hostpublic java.lang.String getPort()
public void setPort(java.lang.String value) throws PMException
value
- port number where the PERMIS agent is listening
PMException
- if there is a problem with the port number.public java.lang.String getSSLSecureRandomNumberService()
public void setSSLSecureRandomNumberService(java.lang.String value)
value
- the secure random number service identifierpublic java.lang.String getSSLSecureRandomNumberProvider()
public void setSSLSecureRandomNumberProvider(java.lang.String value)
value
- the secure random number provider identiferpublic java.lang.String getSSLContextService()
public void setSSLContextService(java.lang.String value)
value
- the SSL context service identifierpublic java.lang.String getSSLContextProvider()
public void setSSLContextProvider(java.lang.String value)
value
- the SSL context providerpublic java.lang.String getSSLEnabledProtocols()
public void setSSLEnabledProtocols(java.lang.String value)
value
- a space separated set of cipher suitespublic java.lang.String getSSLEnabledCipherSuites()
public void setSSLEnabledCipherSuites(java.lang.String value)
value
- space separated set of cipher suites
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |