|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.slee.resource.parlay.fw.access.TSMBeanImpl
public class TSMBeanImpl
This class represents the trust and security management Framework services.
It is used by clients to perform its part of the mutual authentication
process with the Framework necessary to be allowed to use any of the other
interfaces supported by the Framework. It can then be used to access the
other interfaces. This is a higher level bean which encompasses all of the
interfaces within the Parlay trust_and_security module.
| Field Summary |
|---|
| Fields inherited from interface org.mobicents.slee.resource.parlay.fw.access.TSMBeanConstants |
|---|
ACCESS_TYPE, ACTIVE_STATE, AUTHENTICATION_TYPE, IDLE_STATE, INITIALIZED_STATE, INVALID_STATE, NULL_AUTH, P_DISCOVERY, P_RSA_1024, P_RSA_512, P_SERVICE_AGREEMENT_MANAGEMENT |
| Constructor Summary | |
|---|---|
TSMBeanImpl(FwSession fwSession,
FwSessionProperties fwProperties)
|
|
| Method Summary | |
|---|---|
void |
addTSMBeanListener(TSMBeanListener l)
Adds an application listener to the list of those registered on this bean. |
void |
authenticate()
This method will authenticate a client with the Parlay framework. |
void |
cleanup()
This method will clean up all internal object references with the exception of registered listeners which are the responsibility of the application. |
SABean |
createSABean()
This method will create an instance of the Servcie Agreement bean. |
void |
destroySABean()
This method will release an instance of the Service Agreement bean. |
void |
endAccess(org.csapi.fw.TpProperty[] endAccessProperties)
This nethod will end a client's access session with the Parlay framework. |
void |
fireTerminateAccess(org.mobicents.csapi.jr.slee.fw.TerminateAccessEvent e)
Method fireTerminateAccess. |
byte[] |
generateDigitalSignature(java.lang.String text)
used to generate a digital signature using the termination text |
java.lang.Object |
getAuthenticationMonitor()
Returns an object that can be used as a monitor for authentication. |
java.lang.String |
getClientDomain(org.csapi.fw.TpDomainID clientDomainID)
Retrieves the client domain ID to be used for checking the HA database. |
org.csapi.fw.TpDomainID |
getClientDomainID()
Returns the client domain ID to be used for authentication. |
java.lang.String |
getClientID()
Returns the client ID (without type) to be used for authentication. |
java.lang.String |
getEncryptionMethod()
Returns the encryption method chosen by the framework during the authentication sequence. |
EDU.oswego.cs.dl.util.concurrent.Executor |
getEventsQueue()
Returns the Executor of events. |
FwSessionProperties |
getFwProperties()
|
org.csapi.fw.fw_access.trust_and_security.IpInitial |
getInitial()
Returns the Initial object used by this bean. |
ORBHandler |
getOrbHandler()
|
SABean |
getSABean()
This method will return a previously created instance of the Servcie Agreement bean. |
int |
getState()
Returns the current state of this bean. |
void |
initialize()
This method must be called before attempting to make any parlay requests via this object. |
org.csapi.fw.fw_application.discovery.IpServiceDiscovery |
obtainDiscoveryInterface()
This method will return an instance of the serviceDiscovery interface. |
void |
releaseDiscoveryInterface()
This method will release an instance of the serviceDiscovery interface. |
void |
removeTSMBeanListener(TSMBeanListener l)
Removes an application listener from the list of those registered on this bean. |
java.lang.String |
selectSigningAlgorithm()
Select the Signing Algorithm from the signing algorithm capability list |
void |
setAuthenticationSequence(AuthenticationSequence newAuthenticationMechanism)
|
void |
setAuthHandler(AuthenticationHandler authHandler)
|
void |
setClientDomainID(org.csapi.fw.TpDomainID newClientDomainID)
Stores the client domain ID to be used for authentication. |
void |
setFwAuthenticationSucceeded(boolean value)
Called to indicate to this bean that the framework has indicated successful authentication. |
void |
setFwProperties(FwSessionProperties properties)
|
void |
setState(int newState)
Sets the state of this bean. |
void |
setTpAuthDomain(org.csapi.fw.TpAuthDomain tpAuthDomain)
|
void |
shutdown()
This method must be called when an application has no more use of this object to ensure a graceful shutdown. |
java.lang.String |
toString()
Defines a method used to provide the caller with a string representation of the class. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mobicents.slee.resource.parlay.fw.access.TSMBean |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public TSMBeanImpl(FwSession fwSession,
FwSessionProperties fwProperties)
fwProperties - | Method Detail |
|---|
public void initialize()
throws TSMBeanException
initialize in interface TSMBeanTSMBeanExceptionpublic java.lang.String toString()
toString in interface TSMBeantoString in class java.lang.Objectpublic void setClientDomainID(org.csapi.fw.TpDomainID newClientDomainID)
setClientDomainID in interface TSMBeannewClientDomainID - the domain ID to be used
java.lang.IllegalStateException - if the bean is not in IDLE_STATE.public java.lang.String getClientDomain(org.csapi.fw.TpDomainID clientDomainID)
getClientDomain in interface TSMBeanclientDomainID - the domain ID to be usedpublic org.csapi.fw.TpDomainID getClientDomainID()
getClientDomainID in interface TSMBeanpublic java.lang.String getClientID()
getClientID in interface TSMBeanpublic int getState()
getState in interface TSMBeanpublic void setState(int newState)
newState - the new state.public java.lang.String getEncryptionMethod()
getEncryptionMethod in interface TSMBeanpublic org.csapi.fw.fw_access.trust_and_security.IpInitial getInitial()
getInitial in interface TSMBeanpublic java.lang.Object getAuthenticationMonitor()
getAuthenticationMonitor in interface TSMBeanpublic void setFwAuthenticationSucceeded(boolean value)
setFwAuthenticationSucceeded in interface TSMBeanvalue - true if it successful.public void shutdown()
shutdown in interface TSMBean
public void authenticate()
throws TSMBeanException
authenticate in interface TSMBeanTSMBeanException
java.lang.IllegalStateException
public void endAccess(org.csapi.fw.TpProperty[] endAccessProperties)
throws TSMBeanException
endAccess in interface TSMBeanendAccessProperties - can be used to tell the framework the actions to perform when
ending the access session.
TSMBeanException
java.lang.IllegalStateException
public org.csapi.fw.fw_application.discovery.IpServiceDiscovery obtainDiscoveryInterface()
throws TSMBeanException
obtainDiscoveryInterface in interface TSMBeanTSMBeanException
java.lang.IllegalStateException
public void releaseDiscoveryInterface()
throws TSMBeanException
releaseDiscoveryInterface in interface TSMBeanTSMBeanException
java.lang.IllegalStateException
public byte[] generateDigitalSignature(java.lang.String text)
throws TSMBeanException
text -
TSMBeanException
public java.lang.String selectSigningAlgorithm()
throws TSMBeanException
TSMBeanExceptionpublic SABean getSABean()
getSABean in interface TSMBean
public SABean createSABean()
throws TSMBeanException
createSABean in interface TSMBeanTSMBeanException
java.lang.IllegalStateExceptionpublic void destroySABean()
destroySABean in interface TSMBeanTSMBeanException
java.lang.IllegalStateExceptionpublic void removeTSMBeanListener(TSMBeanListener l)
removeTSMBeanListener in interface TSMBeanl - The PCP User Application's implementation of the
TSMBeanListener interface.public void addTSMBeanListener(TSMBeanListener l)
addTSMBeanListener in interface TSMBeanl - The PCP User Application's implementation of the
TSMBeanListener interface.public void cleanup()
cleanup in interface TSMBeanpublic void fireTerminateAccess(org.mobicents.csapi.jr.slee.fw.TerminateAccessEvent e)
fireTerminateAccess in interface TSMBeane - public EDU.oswego.cs.dl.util.concurrent.Executor getEventsQueue()
TSMBean
getEventsQueue in interface TSMBean
public void setAuthenticationSequence(AuthenticationSequence newAuthenticationMechanism)
throws TSMBeanException
newAuthenticationMechanism -
TSMBeanExceptionpublic FwSessionProperties getFwProperties()
getFwProperties in interface TSMBeanpublic void setFwProperties(FwSessionProperties properties)
setFwProperties in interface TSMBeanpublic ORBHandler getOrbHandler()
getOrbHandler in interface TSMBeanpublic void setAuthHandler(AuthenticationHandler authHandler)
authHandler - The authHandler to set.public void setTpAuthDomain(org.csapi.fw.TpAuthDomain tpAuthDomain)
tpAuthDomain - The tpAuthDomain to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||