org.objectweb.proactive.ext.security
Interface Securizable
- All Known Subinterfaces:
- ComponentRequest, Request
- All Known Implementing Classes:
- AwaitedRequest, BodyRequest, ComponentRequestImpl, RequestImpl, RequestWithLocationServer, RequestWithMixedLocation, TimedRequestWithLocationServer, TimedRequestWithMixedLocation
public interface Securizable
A message implementing this interface can be handled by the security
mechanism.
This interface must be implemented by all messages exchanged
between security entities. It includes Request, Reply, BodyRequest, etc.
isCiphered
boolean isCiphered()
- Returns:
- return true if the message is ciphered
getSessionId
long getSessionId()
- Returns:
- return session Id identifying the security
session
decrypt
boolean decrypt(ProActiveSecurityManager psm)
throws RenegotiateSessionException
- Parameters:
psm
- ProActiveSecurityManager
- Returns:
- true if decrypt method succeeds
- Throws:
RenegotiateSessionException
- This exception is thrown when a session
corresponding to the sessionId is not found. The error must be returned to the sender
in order to renegociate a new session and re-send the message
crypt
boolean crypt(ProActiveSecurityManager psm,
UniversalBody destinationBody)
throws RenegotiateSessionException
- Parameters:
psm
- the proactiveSecurityManager of the entity
- Returns:
- true the message can be emitted.
- Throws:
RenegotiateSessionException
Copyright 2001-2007 INRIA All Rights Reserved.