eu.xtreemos.xati.API
Class XCDAMng

java.lang.Object
  extended by eu.xtreemos.xati.API.XCDAMng

public class XCDAMng
extends java.lang.Object

Author:
gregor.pipan@xlab.si

Field Summary
static java.lang.String servicename
           
 
Constructor Summary
XCDAMng()
           
 
Method Summary
static java.lang.Object 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.
static java.lang.Object connectToCDA(CommunicationAddress __caHost, java.security.cert.X509Certificate __cdaCert)
          Connect to CDA server.
 
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
Constructor Detail

XCDAMng

public XCDAMng()
Method Detail

connectToCDA

public static java.lang.Object connectToCDA(CommunicationAddress __caHost,
                                            java.security.cert.X509Certificate __cdaCert)
                                     throws java.lang.Exception
Connect to CDA server.

Throws:
java.lang.Exception

authenticateWithCDA

public static java.lang.Object authenticateWithCDA(CommunicationAddress __caCDAServer,
                                                   java.security.cert.X509Certificate __caCert,
                                                   java.security.KeyPair __keyPair,
                                                   java.lang.String __voUserName,
                                                   java.lang.String __voUserPass)
                                            throws java.lang.Exception
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
Returns:
client certificate (object) which we still need to write somewhere on disc.
Throws:
java.lang.Exception