eu.xtreemos.xati.API
Class XCDAMng
java.lang.Object
eu.xtreemos.xati.API.XCDAMng
public class XCDAMng
- extends java.lang.Object
- Author:
- gregor.pipan@xlab.si
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 |
servicename
public static java.lang.String servicename
XCDAMng
public XCDAMng()
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 servercaCert
- is CDA's public certificatekeyPair
- is users private and public key generated by UtilsvoUserName
- user name of the user on the VOvoUserPass
- password of the user
- Returns:
- client certificate (object) which we still need to write somewhere on disc.
- Throws:
java.lang.Exception