eu.xtreemos.xosd.services
Class SCDAMng

java.lang.Object
  extended by eu.xtreemos.xosd.services.SCDAMng

public class SCDAMng
extends java.lang.Object


Field Summary
private  CommunicationAddress _accesspoint_remoteaddress
           
private  eu.xtreemos.system.eventmachine.queue.Context context
           
static java.lang.String servicename
          AUTOGENERATED CODE
 
Constructor Summary
SCDAMng(eu.xtreemos.system.eventmachine.queue.Context context)
           
 
Method Summary
 void authenticate(java.lang.String __voUsername, java.lang.String __voPassword)
          Authenticates user with the CDA.
 void authenticate(java.lang.String __voUsername, java.lang.String __voPassword, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Authenticates user with the CDA.
 void authenticate(java.lang.String __voUsername, java.lang.String __voPassword, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Authenticates user with the CDA.
 void authenticateWithCDA(CommunicationAddress __caCDAServer, java.security.cert.X509Certificate __caCert, java.security.KeyPair __keyPair, java.lang.String __voUserName, java.lang.String __voUserPass)
          This method authenticates user with CDA server.
 void authenticateWithCDA(CommunicationAddress __caCDAServer, java.security.cert.X509Certificate __caCert, java.security.KeyPair __keyPair, java.lang.String __voUserName, java.lang.String __voUserPass, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          This method authenticates user with CDA server.
 void authenticateWithCDA(CommunicationAddress __caCDAServer, java.security.cert.X509Certificate __caCert, java.security.KeyPair __keyPair, java.lang.String __voUserName, java.lang.String __voUserPass, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          This method authenticates user with CDA server.
 void connectToCDA(CommunicationAddress __caHost, java.security.cert.X509Certificate __cdaCert)
          Connect to CDA server.
 void connectToCDA(CommunicationAddress __caHost, java.security.cert.X509Certificate __cdaCert, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Connect to CDA server.
 void connectToCDA(CommunicationAddress __caHost, java.security.cert.X509Certificate __cdaCert, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Connect to CDA server.
 void createSSLContext(java.security.cert.X509Certificate __cdaCert)
          Creating context which provides ssl sockets for the CDA server connection used in connectToCDA method.
 void createSSLContext(java.security.cert.X509Certificate __cdaCert, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Creating context which provides ssl sockets for the CDA server connection used in connectToCDA method.
 void createSSLContext(java.security.cert.X509Certificate __cdaCert, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Creating context which provides ssl sockets for the CDA server connection used in connectToCDA method.
 void createTrustStore(java.security.cert.X509Certificate __trustedServerCertificate, java.lang.String __alias)
          This creates KeyStore into which trustedServerCertificate is added as trusted key certificate.
 void createTrustStore(java.security.cert.X509Certificate __trustedServerCertificate, java.lang.String __alias, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          This creates KeyStore into which trustedServerCertificate is added as trusted key certificate.
 void createTrustStore(java.security.cert.X509Certificate __trustedServerCertificate, java.lang.String __alias, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          This creates KeyStore into which trustedServerCertificate is added as trusted key certificate.
 void getResourceCertificate()
           
 void getResourceCertificate(eu.xtreemos.system.communication.bus.CallbackMessage callback)
           
 void getResourceCertificate(eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
           
 void getResourceCertificateFailure(java.lang.Exception __ex)
           
 void getResourceCertificateFailure(java.lang.Exception __ex, eu.xtreemos.system.communication.bus.CallbackMessage callback)
           
 void getResourceCertificateFailure(java.lang.Exception __ex, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
           
 void handshakeCompleted(javax.net.ssl.HandshakeCompletedEvent __ev)
          This is handle method when SSL context with CDA server is established.
 void handshakeCompleted(javax.net.ssl.HandshakeCompletedEvent __ev, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          This is handle method when SSL context with CDA server is established.
 void handshakeCompleted(javax.net.ssl.HandshakeCompletedEvent __ev, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          This is handle method when SSL context with CDA server is established.
 void sendCertificateRequest(java.lang.String __voName, org.bouncycastle.jce.PKCS10CertificationRequest __userRequest)
          Deprecated.  
 void sendCertificateRequest(java.lang.String __voName, org.bouncycastle.jce.PKCS10CertificationRequest __userRequest, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Deprecated.  
 void sendCertificateRequest(java.lang.String __voName, org.bouncycastle.jce.PKCS10CertificationRequest __userRequest, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Deprecated.  
 void setRemoteaddress(CommunicationAddress _accesspoint_remoteaddress)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

servicename

public static java.lang.String servicename
AUTOGENERATED CODE


context

private eu.xtreemos.system.eventmachine.queue.Context context

_accesspoint_remoteaddress

private CommunicationAddress _accesspoint_remoteaddress
Constructor Detail

SCDAMng

public SCDAMng(eu.xtreemos.system.eventmachine.queue.Context context)
Method Detail

setRemoteaddress

public void setRemoteaddress(CommunicationAddress _accesspoint_remoteaddress)

connectToCDA

public void connectToCDA(CommunicationAddress __caHost,
                         java.security.cert.X509Certificate __cdaCert)
Connect to CDA server.


connectToCDA

public void connectToCDA(CommunicationAddress __caHost,
                         java.security.cert.X509Certificate __cdaCert,
                         eu.xtreemos.system.communication.bus.CallbackMessage callback)
Connect to CDA server.


connectToCDA

public void connectToCDA(CommunicationAddress __caHost,
                         java.security.cert.X509Certificate __cdaCert,
                         eu.xtreemos.system.communication.bus.CallbackMessage callback,
                         eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Connect to CDA server.


createSSLContext

public void createSSLContext(java.security.cert.X509Certificate __cdaCert)
Creating context which provides ssl sockets for the CDA server connection used in connectToCDA method.

Parameters:
cdaCert - Certificate to use as handshake certificate.

createSSLContext

public void createSSLContext(java.security.cert.X509Certificate __cdaCert,
                             eu.xtreemos.system.communication.bus.CallbackMessage callback)
Creating context which provides ssl sockets for the CDA server connection used in connectToCDA method.

Parameters:
cdaCert - Certificate to use as handshake certificate.

createSSLContext

public void createSSLContext(java.security.cert.X509Certificate __cdaCert,
                             eu.xtreemos.system.communication.bus.CallbackMessage callback,
                             eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Creating context which provides ssl sockets for the CDA server connection used in connectToCDA method.

Parameters:
cdaCert - Certificate to use as handshake certificate.

handshakeCompleted

public void handshakeCompleted(javax.net.ssl.HandshakeCompletedEvent __ev)
This is handle method when SSL context with CDA server is established. It checks whether CDA certificate (loaded in trust store) is the same as the certificate, obtained with handshake.


handshakeCompleted

public void handshakeCompleted(javax.net.ssl.HandshakeCompletedEvent __ev,
                               eu.xtreemos.system.communication.bus.CallbackMessage callback)
This is handle method when SSL context with CDA server is established. It checks whether CDA certificate (loaded in trust store) is the same as the certificate, obtained with handshake.


handshakeCompleted

public void handshakeCompleted(javax.net.ssl.HandshakeCompletedEvent __ev,
                               eu.xtreemos.system.communication.bus.CallbackMessage callback,
                               eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
This is handle method when SSL context with CDA server is established. It checks whether CDA certificate (loaded in trust store) is the same as the certificate, obtained with handshake.


sendCertificateRequest

public void sendCertificateRequest(java.lang.String __voName,
                                   org.bouncycastle.jce.PKCS10CertificationRequest __userRequest)
Deprecated. 

Parameters:
userRequest -
Throws:
java.lang.IllegalArgumentException
IOException

sendCertificateRequest

public void sendCertificateRequest(java.lang.String __voName,
                                   org.bouncycastle.jce.PKCS10CertificationRequest __userRequest,
                                   eu.xtreemos.system.communication.bus.CallbackMessage callback)
Deprecated. 

Parameters:
userRequest -
Throws:
java.lang.IllegalArgumentException
IOException

sendCertificateRequest

public void sendCertificateRequest(java.lang.String __voName,
                                   org.bouncycastle.jce.PKCS10CertificationRequest __userRequest,
                                   eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                   eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Deprecated. 

Parameters:
userRequest -
Throws:
java.lang.IllegalArgumentException
IOException

authenticateWithCDA

public void authenticateWithCDA(CommunicationAddress __caCDAServer,
                                java.security.cert.X509Certificate __caCert,
                                java.security.KeyPair __keyPair,
                                java.lang.String __voUserName,
                                java.lang.String __voUserPass)
This method authenticates user with CDA server. It implements CDAIS - Invocation Service of the CDA.

Parameters:
caCDAServer - address of CDA server
caCert - is CDA's public certificate
keyPair - is users private and public key generated by Utils
voUserName - user name of the user on the VO
voUserPass - password of the user

authenticateWithCDA

public void authenticateWithCDA(CommunicationAddress __caCDAServer,
                                java.security.cert.X509Certificate __caCert,
                                java.security.KeyPair __keyPair,
                                java.lang.String __voUserName,
                                java.lang.String __voUserPass,
                                eu.xtreemos.system.communication.bus.CallbackMessage callback)
This method authenticates user with CDA server. It implements CDAIS - Invocation Service of the CDA.

Parameters:
caCDAServer - address of CDA server
caCert - is CDA's public certificate
keyPair - is users private and public key generated by Utils
voUserName - user name of the user on the VO
voUserPass - password of the user

authenticateWithCDA

public void authenticateWithCDA(CommunicationAddress __caCDAServer,
                                java.security.cert.X509Certificate __caCert,
                                java.security.KeyPair __keyPair,
                                java.lang.String __voUserName,
                                java.lang.String __voUserPass,
                                eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
This method authenticates user with CDA server. It implements CDAIS - Invocation Service of the CDA.

Parameters:
caCDAServer - address of CDA server
caCert - is CDA's public certificate
keyPair - is users private and public key generated by Utils
voUserName - user name of the user on the VO
voUserPass - password of the user

createTrustStore

public void createTrustStore(java.security.cert.X509Certificate __trustedServerCertificate,
                             java.lang.String __alias)
This creates KeyStore into which trustedServerCertificate is added as trusted key certificate.

Parameters:
trustedServerCertificate -
alias - for the certificate

createTrustStore

public void createTrustStore(java.security.cert.X509Certificate __trustedServerCertificate,
                             java.lang.String __alias,
                             eu.xtreemos.system.communication.bus.CallbackMessage callback)
This creates KeyStore into which trustedServerCertificate is added as trusted key certificate.

Parameters:
trustedServerCertificate -
alias - for the certificate

createTrustStore

public void createTrustStore(java.security.cert.X509Certificate __trustedServerCertificate,
                             java.lang.String __alias,
                             eu.xtreemos.system.communication.bus.CallbackMessage callback,
                             eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
This creates KeyStore into which trustedServerCertificate is added as trusted key certificate.

Parameters:
trustedServerCertificate -
alias - for the certificate

getResourceCertificate

public void getResourceCertificate()

getResourceCertificate

public void getResourceCertificate(eu.xtreemos.system.communication.bus.CallbackMessage callback)

getResourceCertificate

public void getResourceCertificate(eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                   eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)

getResourceCertificateFailure

public void getResourceCertificateFailure(java.lang.Exception __ex)

getResourceCertificateFailure

public void getResourceCertificateFailure(java.lang.Exception __ex,
                                          eu.xtreemos.system.communication.bus.CallbackMessage callback)

getResourceCertificateFailure

public void getResourceCertificateFailure(java.lang.Exception __ex,
                                          eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                          eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)

authenticate

public void authenticate(java.lang.String __voUsername,
                         java.lang.String __voPassword)
Authenticates user with the CDA.

Parameters:
voUsername -
voPassword -
Throws:
IOException

authenticate

public void authenticate(java.lang.String __voUsername,
                         java.lang.String __voPassword,
                         eu.xtreemos.system.communication.bus.CallbackMessage callback)
Authenticates user with the CDA.

Parameters:
voUsername -
voPassword -
Throws:
IOException

authenticate

public void authenticate(java.lang.String __voUsername,
                         java.lang.String __voPassword,
                         eu.xtreemos.system.communication.bus.CallbackMessage callback,
                         eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Authenticates user with the CDA.

Parameters:
voUsername -
voPassword -
Throws:
IOException