org.gcube.common.core.contexts.ghn
Class CredentialConsumer

java.lang.Object
  extended by org.gcube.common.core.contexts.ghn.CredentialConsumer
All Implemented Interfaces:
GCUBEConsumer<Events.SecurityTopic,Object>

public abstract class CredentialConsumer
extends Object
implements GCUBEConsumer<Events.SecurityTopic,Object>

Base implementation of a GCUBEConsumer of GHNEvents.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
CredentialConsumer()
           
 
Method Summary
abstract  GCUBEServiceContext getServiceContext()
          Returns the context of the service on behalf of which the consumer is requesting credential delegation.
protected abstract  void onCredentialDelegation(Events.CredentialDelegationEvent event)
          Activation event callback.
<T1 extends Events.SecurityTopic,P1>
void
onEvent(GCUBEEvent<T1,P1>... events)
          Receives RI lifetime events and dispatches them to topic-specific callbacks.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CredentialConsumer

public CredentialConsumer()
Method Detail

onEvent

public final <T1 extends Events.SecurityTopic,P1> void onEvent(GCUBEEvent<T1,P1>... events)
Receives RI lifetime events and dispatches them to topic-specific callbacks.

Specified by:
onEvent in interface GCUBEConsumer<Events.SecurityTopic,Object>
Type Parameters:
T1 - the topic type.
P1 - the payload type.
Parameters:
events - the events.

onCredentialDelegation

protected abstract void onCredentialDelegation(Events.CredentialDelegationEvent event)
Activation event callback.

Parameters:
event - the event.

getServiceContext

public abstract GCUBEServiceContext getServiceContext()
Returns the context of the service on behalf of which the consumer is requesting credential delegation.



Copyright © 2013. All Rights Reserved.