#include <DelegationInterface.h>
Public Member Functions | |
DelegationConsumerSOAP (void) | |
DelegationConsumerSOAP (const std::string &content) | |
bool | DelegateCredentialsInit (const std::string &id, const SOAPEnvelope &in, SOAPEnvelope &out) |
bool | UpdateCredentials (std::string &credentials, const SOAPEnvelope &in, SOAPEnvelope &out) |
bool | UpdateCredentials (std::string &credentials, std::string &identity, const SOAPEnvelope &in, SOAPEnvelope &out) |
bool | DelegatedToken (std::string &credentials, XMLNode token) |
This class extends DelegationConsumer to support SOAP message exchange. Implements WS interface http://www.nordugrid.org/schemas/delegation described in delegation.wsdl.
Arc::DelegationConsumerSOAP::DelegationConsumerSOAP | ( | void | ) |
Creates object with new private key
Arc::DelegationConsumerSOAP::DelegationConsumerSOAP | ( | const std::string & | content | ) |
Creates object with specified private key
bool Arc::DelegationConsumerSOAP::DelegateCredentialsInit | ( | const std::string & | id, | |
const SOAPEnvelope & | in, | |||
SOAPEnvelope & | out | |||
) |
Process SOAP message which starts delegation. Generated message in 'out' is meant to be sent back to DelagationProviderSOAP. Argument 'id' contains identifier of procedure and is used only to produce SOAP message.
bool Arc::DelegationConsumerSOAP::DelegatedToken | ( | std::string & | credentials, | |
XMLNode | token | |||
) |
Similar to UpdateCredentials but takes only DelegatedToken XML element
bool Arc::DelegationConsumerSOAP::UpdateCredentials | ( | std::string & | credentials, | |
std::string & | identity, | |||
const SOAPEnvelope & | in, | |||
SOAPEnvelope & | out | |||
) |
Includes the functionality in above UpdateCredentials method; plus extracting the credential identity
bool Arc::DelegationConsumerSOAP::UpdateCredentials | ( | std::string & | credentials, | |
const SOAPEnvelope & | in, | |||
SOAPEnvelope & | out | |||
) |
Accepts delegated credentials. Process 'in' SOAP message and stores full proxy credentials in 'credentials'. 'out' message is generated for sending to DelagationProviderSOAP.