|
||||||||||
| 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.AuthenticationHandlerImpl
public class AuthenticationHandlerImpl
For internal use only. This class is used to perform client side authenticaion with the Parlay framework.
| Constructor Summary | |
|---|---|
AuthenticationHandlerImpl(TSMBean tsmBean)
|
|
| Method Summary | |
|---|---|
void |
abortAuthentication()
Invokes abortAuthentication() against the gateway. |
void |
authenticate(java.lang.String encryptionMethod)
Calls Authentication.authenticate() using the Authentication interface held by the TSMBean. |
void |
authenticationSucceeded()
Calls Authentication.authenticationSucceeded() using the Authentication interface held by the TSMBean. |
void |
challenge(java.lang.String authMechanism)
Calls Authentication.authenticate() using the Authentication interface held by the TSMBean. |
void |
cleanup()
Destroys resources to enable garbage collection. |
protected byte[] |
encryptChallenge(byte[] challenge,
java.lang.String encryptionMethod)
Encrypts the specified challenge according to the specified method. |
protected byte[] |
generateRandomChallenge()
Generates a 50 byte random array |
protected java.security.interfaces.RSAPublicKey |
getAppRSAPublicKey(java.lang.String encryptionMethod)
Returns a RSA public key for the appropriate encryption method from the application vault. |
protected java.lang.String |
getAppRSAPublicKeyFilename(java.lang.String clientID,
int keySize)
Generates the appropriate filename for the application RSA public key file. |
void |
initiateAuthentication(org.csapi.fw.TpAuthDomain clientAuthDomain)
Calls Initial.initiateAuthentication() using the Initial interface held by the TSMBean. |
void |
initiateAuthenticationWithVersion(org.csapi.fw.TpAuthDomain clientAuthDomain,
java.lang.String version)
Calls Initial.initiateAuthenticationWithVersion() using the Initial interface held by the TSMBean. |
org.csapi.fw.fw_access.trust_and_security.IpAccess |
requestAccess(org.csapi.IpInterface clientAccess)
Invokes requestAccess() agianst the gateway. |
java.lang.String |
selectAuthenticationMechanism(java.lang.String authMechanismList)
Calls Authentication.selectAuthenticationMechanism() using the Authentication interface held by the TSMBean. |
java.lang.String |
selectEncryptionMethod(java.lang.String authCapabilityList)
Calls Authentication.selectEncryptionMethod() using the Authentication interface held by the TSMBean. |
static void |
setApiLevelAuthentication(org.csapi.fw.fw_access.trust_and_security.IpAPILevelAuthentication apiLevelAuthentication)
|
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 |
| Constructor Detail |
|---|
public AuthenticationHandlerImpl(TSMBean tsmBean)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
public void initiateAuthentication(org.csapi.fw.TpAuthDomain clientAuthDomain)
throws TSMBeanException
initiateAuthentication in interface AuthenticationHandlerTSMBeanException
public void initiateAuthenticationWithVersion(org.csapi.fw.TpAuthDomain clientAuthDomain,
java.lang.String version)
throws TSMBeanException
initiateAuthenticationWithVersion in interface AuthenticationHandlerTSMBeanException
public java.lang.String selectEncryptionMethod(java.lang.String authCapabilityList)
throws TSMBeanException
selectEncryptionMethod in interface AuthenticationHandlerauthCapabilityList, - the clients auth capability list.
TSMBeanException
public java.lang.String selectAuthenticationMechanism(java.lang.String authMechanismList)
throws TSMBeanException
selectAuthenticationMechanism in interface AuthenticationHandlerauthMechanismList, - the clients auth mechanism list.
TSMBeanException
public void authenticate(java.lang.String encryptionMethod)
throws TSMBeanException
AuthenticationHandler
authenticate in interface AuthenticationHandlerTSMBeanException
public void challenge(java.lang.String authMechanism)
throws TSMBeanException
AuthenticationHandler
challenge in interface AuthenticationHandlerTSMBeanException
public void authenticationSucceeded()
throws TSMBeanException
authenticationSucceeded in interface AuthenticationHandlerTSMBeanException
public org.csapi.fw.fw_access.trust_and_security.IpAccess requestAccess(org.csapi.IpInterface clientAccess)
throws TSMBeanException
requestAccess() agianst the gateway.
requestAccess in interface AuthenticationHandlerTSMBeanExceptionpublic void cleanup()
AuthenticationHandler
cleanup in interface AuthenticationHandlerprotected byte[] generateRandomChallenge()
protected byte[] encryptChallenge(byte[] challenge,
java.lang.String encryptionMethod)
throws TSMBeanException
challenge - encryptionMethod -
TSMBeanException
protected java.security.interfaces.RSAPublicKey getAppRSAPublicKey(java.lang.String encryptionMethod)
throws RSAUtilException,
TSMBeanException
encryptionMethod -
RSAUtilException
TSMBeanException
protected java.lang.String getAppRSAPublicKeyFilename(java.lang.String clientID,
int keySize)
clientID - keySize -
public void abortAuthentication()
abortAuthentication in interface AuthenticationHandlerpublic static void setApiLevelAuthentication(org.csapi.fw.fw_access.trust_and_security.IpAPILevelAuthentication apiLevelAuthentication)
apiLevelAuthentication - The apiLevelAuthentication to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||