eu.xtreemos.xosd.services
Class SRCAServer

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

public class SRCAServer
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
SRCAServer(eu.xtreemos.system.eventmachine.queue.Context context)
           
 
Method Summary
 void applyForRegistration(ResourceDescriptorRecord __resource)
          Put the resource on the list of resources that can be registered, but need to wait for an authorised administrator to confirm the registration using the confirmRegistration call before the resource can have its certificates signed by the RCA.
 void applyForRegistration(ResourceDescriptorRecord __resource, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Put the resource on the list of resources that can be registered, but need to wait for an authorised administrator to confirm the registration using the confirmRegistration call before the resource can have its certificates signed by the RCA.
 void applyForRegistration(ResourceDescriptorRecord __resource, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Put the resource on the list of resources that can be registered, but need to wait for an authorised administrator to confirm the registration using the confirmRegistration call before the resource can have its certificates signed by the RCA.
 void confirmRegistration(ResourceID __id)
          Confirm the registration of a resource that has previously been applied for the registration using applyForRegistration.
 void confirmRegistration(ResourceID __id, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Confirm the registration of a resource that has previously been applied for the registration using applyForRegistration.
 void confirmRegistration(ResourceID __id, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Confirm the registration of a resource that has previously been applied for the registration using applyForRegistration.
 void getPendingResources()
          Returns a list of resource descriptions describing the resources listed in the RCA DB as pending for registration.
 void getPendingResources(eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Returns a list of resource descriptions describing the resources listed in the RCA DB as pending for registration.
 void getPendingResources(eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Returns a list of resource descriptions describing the resources listed in the RCA DB as pending for registration.
 void getRegisteredResources()
          Returns a list of resource descriptions describing the resources listed in the RCA DB as registered.
 void getRegisteredResources(eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Returns a list of resource descriptions describing the resources listed in the RCA DB as registered.
 void getRegisteredResources(eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Returns a list of resource descriptions describing the resources listed in the RCA DB as registered.
 void getResourceStatus(ResourceID __id)
          Retrieves the current status of the resource according to the RCA DB.
 void getResourceStatus(ResourceID __id, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Retrieves the current status of the resource according to the RCA DB.
 void getResourceStatus(ResourceID __id, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Retrieves the current status of the resource according to the RCA DB.
 void notifyVOMembershipChange(ResourceID __id, java.lang.String __vo, java.lang.Boolean __addition)
          Lets manipulate with the resource's membership of a VO.
 void notifyVOMembershipChange(ResourceID __id, java.lang.String __vo, java.lang.Boolean __addition, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Lets manipulate with the resource's membership of a VO.
 void notifyVOMembershipChange(ResourceID __id, java.lang.String __vo, java.lang.Boolean __addition, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Lets manipulate with the resource's membership of a VO.
 void processClientCertificateDeletion(java.lang.Integer __result)
           
 void processClientCertificateDeletion(java.lang.Integer __result, eu.xtreemos.system.communication.bus.CallbackMessage callback)
           
 void processClientCertificateDeletion(java.lang.Integer __result, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
           
 void processClientCertificateDeletionFailure(java.lang.Exception __ex)
           
 void processClientCertificateDeletionFailure(java.lang.Exception __ex, eu.xtreemos.system.communication.bus.CallbackMessage callback)
           
 void processClientCertificateDeletionFailure(java.lang.Exception __ex, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
           
 void processMachineCertForNodeNotification(java.security.cert.X509Certificate __cert)
          Proceed with the execution from notifyVOMembershipChange, receiving the certificate from the client.
 void processMachineCertForNodeNotification(java.security.cert.X509Certificate __cert, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Proceed with the execution from notifyVOMembershipChange, receiving the certificate from the client.
 void processMachineCertForNodeNotification(java.security.cert.X509Certificate __cert, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Proceed with the execution from notifyVOMembershipChange, receiving the certificate from the client.
 void processMachineCertForNodeNotificationFailed(java.lang.Exception __ex)
           
 void processMachineCertForNodeNotificationFailed(java.lang.Exception __ex, eu.xtreemos.system.communication.bus.CallbackMessage callback)
           
 void processMachineCertForNodeNotificationFailed(java.lang.Exception __ex, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
           
 void requestCertificate(ResourceID __id, org.bouncycastle.jce.PKCS10CertificationRequest __certRequest)
          Serves the client's request for signing the certificate.
 void requestCertificate(ResourceID __id, org.bouncycastle.jce.PKCS10CertificationRequest __certRequest, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Serves the client's request for signing the certificate.
 void requestCertificate(ResourceID __id, org.bouncycastle.jce.PKCS10CertificationRequest __certRequest, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Serves the client's request for signing the certificate.
 void requestVOCertificate(ResourceID __id, java.security.cert.X509Certificate __certificate, java.lang.String __vo)
           
 void requestVOCertificate(ResourceID __id, java.security.cert.X509Certificate __certificate, java.lang.String __vo, eu.xtreemos.system.communication.bus.CallbackMessage callback)
           
 void requestVOCertificate(ResourceID __id, java.security.cert.X509Certificate __certificate, java.lang.String __vo, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
           
 void setRemoteaddress(CommunicationAddress _accesspoint_remoteaddress)
           
 void unregisterResource(ResourceID __id)
          Remove the resource from the list of registered resources.
 void unregisterResource(ResourceID __id, eu.xtreemos.system.communication.bus.CallbackMessage callback)
          Remove the resource from the list of registered resources.
 void unregisterResource(ResourceID __id, eu.xtreemos.system.communication.bus.CallbackMessage callback, eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
          Remove the resource from the list of registered resources.
 
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

SRCAServer

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

setRemoteaddress

public void setRemoteaddress(CommunicationAddress _accesspoint_remoteaddress)

getRegisteredResources

public void getRegisteredResources()
Returns a list of resource descriptions describing the resources listed in the RCA DB as registered.


getRegisteredResources

public void getRegisteredResources(eu.xtreemos.system.communication.bus.CallbackMessage callback)
Returns a list of resource descriptions describing the resources listed in the RCA DB as registered.


getRegisteredResources

public void getRegisteredResources(eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                   eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Returns a list of resource descriptions describing the resources listed in the RCA DB as registered.


getPendingResources

public void getPendingResources()
Returns a list of resource descriptions describing the resources listed in the RCA DB as pending for registration.


getPendingResources

public void getPendingResources(eu.xtreemos.system.communication.bus.CallbackMessage callback)
Returns a list of resource descriptions describing the resources listed in the RCA DB as pending for registration.


getPendingResources

public void getPendingResources(eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Returns a list of resource descriptions describing the resources listed in the RCA DB as pending for registration.


applyForRegistration

public void applyForRegistration(ResourceDescriptorRecord __resource)
Put the resource on the list of resources that can be registered, but need to wait for an authorised administrator to confirm the registration using the confirmRegistration call before the resource can have its certificates signed by the RCA. If the resource is already on any of the lists, then their entry gets replaced with the new value, thus updating the application or the registration.

Parameters:
resource - The descriptor of the resource applying for the registration.

applyForRegistration

public void applyForRegistration(ResourceDescriptorRecord __resource,
                                 eu.xtreemos.system.communication.bus.CallbackMessage callback)
Put the resource on the list of resources that can be registered, but need to wait for an authorised administrator to confirm the registration using the confirmRegistration call before the resource can have its certificates signed by the RCA. If the resource is already on any of the lists, then their entry gets replaced with the new value, thus updating the application or the registration.

Parameters:
resource - The descriptor of the resource applying for the registration.

applyForRegistration

public void applyForRegistration(ResourceDescriptorRecord __resource,
                                 eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                 eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Put the resource on the list of resources that can be registered, but need to wait for an authorised administrator to confirm the registration using the confirmRegistration call before the resource can have its certificates signed by the RCA. If the resource is already on any of the lists, then their entry gets replaced with the new value, thus updating the application or the registration.

Parameters:
resource - The descriptor of the resource applying for the registration.

confirmRegistration

public void confirmRegistration(ResourceID __id)
Confirm the registration of a resource that has previously been applied for the registration using applyForRegistration. After this call, the RCA will sign certificates for the registered resource (requestCertificate).

Parameters:
id - The id of the resource record signifying the resource to be confirmed for the registration.

confirmRegistration

public void confirmRegistration(ResourceID __id,
                                eu.xtreemos.system.communication.bus.CallbackMessage callback)
Confirm the registration of a resource that has previously been applied for the registration using applyForRegistration. After this call, the RCA will sign certificates for the registered resource (requestCertificate).

Parameters:
id - The id of the resource record signifying the resource to be confirmed for the registration.

confirmRegistration

public void confirmRegistration(ResourceID __id,
                                eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Confirm the registration of a resource that has previously been applied for the registration using applyForRegistration. After this call, the RCA will sign certificates for the registered resource (requestCertificate).

Parameters:
id - The id of the resource record signifying the resource to be confirmed for the registration.

unregisterResource

public void unregisterResource(ResourceID __id)
Remove the resource from the list of registered resources. Once the resource has been unregistered, it cannot have the machine certificates signed by the RCA.

Parameters:
id - The id of the resource record signifying the resource to be removed for the list of registered resources.

unregisterResource

public void unregisterResource(ResourceID __id,
                               eu.xtreemos.system.communication.bus.CallbackMessage callback)
Remove the resource from the list of registered resources. Once the resource has been unregistered, it cannot have the machine certificates signed by the RCA.

Parameters:
id - The id of the resource record signifying the resource to be removed for the list of registered resources.

unregisterResource

public void unregisterResource(ResourceID __id,
                               eu.xtreemos.system.communication.bus.CallbackMessage callback,
                               eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Remove the resource from the list of registered resources. Once the resource has been unregistered, it cannot have the machine certificates signed by the RCA.

Parameters:
id - The id of the resource record signifying the resource to be removed for the list of registered resources.

requestCertificate

public void requestCertificate(ResourceID __id,
                               org.bouncycastle.jce.PKCS10CertificationRequest __certRequest)
Serves the client's request for signing the certificate. The method retrieves the data on the resource from the RCA DB, and uses the descriptor and the data in the config file to set up the attributes of the certificates that will be returned signed. The resource has to be a member of the registered resources, i.e. successful calls to applyForRegistration and confirmRegistration have to precede this call.

Parameters:
id - The id of the resource that requests the certificate signature.
certRequest - The certificate signature request.
Throws:
java.lang.IllegalArgumentException - Thrown when the certificate request is invalid.
InvalidKeyException
SignatureException
java.lang.Exception

requestCertificate

public void requestCertificate(ResourceID __id,
                               org.bouncycastle.jce.PKCS10CertificationRequest __certRequest,
                               eu.xtreemos.system.communication.bus.CallbackMessage callback)
Serves the client's request for signing the certificate. The method retrieves the data on the resource from the RCA DB, and uses the descriptor and the data in the config file to set up the attributes of the certificates that will be returned signed. The resource has to be a member of the registered resources, i.e. successful calls to applyForRegistration and confirmRegistration have to precede this call.

Parameters:
id - The id of the resource that requests the certificate signature.
certRequest - The certificate signature request.
Throws:
java.lang.IllegalArgumentException - Thrown when the certificate request is invalid.
InvalidKeyException
SignatureException
java.lang.Exception

requestCertificate

public void requestCertificate(ResourceID __id,
                               org.bouncycastle.jce.PKCS10CertificationRequest __certRequest,
                               eu.xtreemos.system.communication.bus.CallbackMessage callback,
                               eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Serves the client's request for signing the certificate. The method retrieves the data on the resource from the RCA DB, and uses the descriptor and the data in the config file to set up the attributes of the certificates that will be returned signed. The resource has to be a member of the registered resources, i.e. successful calls to applyForRegistration and confirmRegistration have to precede this call.

Parameters:
id - The id of the resource that requests the certificate signature.
certRequest - The certificate signature request.
Throws:
java.lang.IllegalArgumentException - Thrown when the certificate request is invalid.
InvalidKeyException
SignatureException
java.lang.Exception

getResourceStatus

public void getResourceStatus(ResourceID __id)
Retrieves the current status of the resource according to the RCA DB.

Parameters:
id - The identifier of the resource to check the status of.

getResourceStatus

public void getResourceStatus(ResourceID __id,
                              eu.xtreemos.system.communication.bus.CallbackMessage callback)
Retrieves the current status of the resource according to the RCA DB.

Parameters:
id - The identifier of the resource to check the status of.

getResourceStatus

public void getResourceStatus(ResourceID __id,
                              eu.xtreemos.system.communication.bus.CallbackMessage callback,
                              eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Retrieves the current status of the resource according to the RCA DB.

Parameters:
id - The identifier of the resource to check the status of.

requestVOCertificate

public void requestVOCertificate(ResourceID __id,
                                 java.security.cert.X509Certificate __certificate,
                                 java.lang.String __vo)

requestVOCertificate

public void requestVOCertificate(ResourceID __id,
                                 java.security.cert.X509Certificate __certificate,
                                 java.lang.String __vo,
                                 eu.xtreemos.system.communication.bus.CallbackMessage callback)

requestVOCertificate

public void requestVOCertificate(ResourceID __id,
                                 java.security.cert.X509Certificate __certificate,
                                 java.lang.String __vo,
                                 eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                 eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)

notifyVOMembershipChange

public void notifyVOMembershipChange(ResourceID __id,
                                     java.lang.String __vo,
                                     java.lang.Boolean __addition)
Lets manipulate with the resource's membership of a VO. The method can set and unset the VO which the resource belongs to. The resource has to be on a registered resources list.

Parameters:
id - The identification of the resource we are setting the membership in a VO of.
vo - The VO to set the membership in.
addition - If true, the membership will be set, and if false, the VO will be removed from the list of VOs the resource is a member of.
Throws:
ResourceNotRegisteredException - If the resource is not on the list of the registered resources.

notifyVOMembershipChange

public void notifyVOMembershipChange(ResourceID __id,
                                     java.lang.String __vo,
                                     java.lang.Boolean __addition,
                                     eu.xtreemos.system.communication.bus.CallbackMessage callback)
Lets manipulate with the resource's membership of a VO. The method can set and unset the VO which the resource belongs to. The resource has to be on a registered resources list.

Parameters:
id - The identification of the resource we are setting the membership in a VO of.
vo - The VO to set the membership in.
addition - If true, the membership will be set, and if false, the VO will be removed from the list of VOs the resource is a member of.
Throws:
ResourceNotRegisteredException - If the resource is not on the list of the registered resources.

notifyVOMembershipChange

public void notifyVOMembershipChange(ResourceID __id,
                                     java.lang.String __vo,
                                     java.lang.Boolean __addition,
                                     eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                     eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Lets manipulate with the resource's membership of a VO. The method can set and unset the VO which the resource belongs to. The resource has to be on a registered resources list.

Parameters:
id - The identification of the resource we are setting the membership in a VO of.
vo - The VO to set the membership in.
addition - If true, the membership will be set, and if false, the VO will be removed from the list of VOs the resource is a member of.
Throws:
ResourceNotRegisteredException - If the resource is not on the list of the registered resources.

processMachineCertForNodeNotification

public void processMachineCertForNodeNotification(java.security.cert.X509Certificate __cert)
Proceed with the execution from notifyVOMembershipChange, receiving the certificate from the client.

Parameters:
cert - The client's certificate.
Throws:
java.lang.Exception
BadResourceException
SignatureException
java.lang.IllegalArgumentException
InvalidKeyException

processMachineCertForNodeNotification

public void processMachineCertForNodeNotification(java.security.cert.X509Certificate __cert,
                                                  eu.xtreemos.system.communication.bus.CallbackMessage callback)
Proceed with the execution from notifyVOMembershipChange, receiving the certificate from the client.

Parameters:
cert - The client's certificate.
Throws:
java.lang.Exception
BadResourceException
SignatureException
java.lang.IllegalArgumentException
InvalidKeyException

processMachineCertForNodeNotification

public void processMachineCertForNodeNotification(java.security.cert.X509Certificate __cert,
                                                  eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                                  eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)
Proceed with the execution from notifyVOMembershipChange, receiving the certificate from the client.

Parameters:
cert - The client's certificate.
Throws:
java.lang.Exception
BadResourceException
SignatureException
java.lang.IllegalArgumentException
InvalidKeyException

processMachineCertForNodeNotificationFailed

public void processMachineCertForNodeNotificationFailed(java.lang.Exception __ex)

processMachineCertForNodeNotificationFailed

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

processMachineCertForNodeNotificationFailed

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

processClientCertificateDeletion

public void processClientCertificateDeletion(java.lang.Integer __result)

processClientCertificateDeletion

public void processClientCertificateDeletion(java.lang.Integer __result,
                                             eu.xtreemos.system.communication.bus.CallbackMessage callback)

processClientCertificateDeletion

public void processClientCertificateDeletion(java.lang.Integer __result,
                                             eu.xtreemos.system.communication.bus.CallbackMessage callback,
                                             eu.xtreemos.system.communication.bus.CallbackMessage exceptionCallback)

processClientCertificateDeletionFailure

public void processClientCertificateDeletionFailure(java.lang.Exception __ex)

processClientCertificateDeletionFailure

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

processClientCertificateDeletionFailure

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