org.objectweb.proactive.ext.security
Interface Securizable
- All Known Subinterfaces:
- ComponentRequest, Request
- All Known Implementing Classes:
- AwaitedRequest, BodyRequest, ComponentRequestImpl, RequestImpl
- 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
public boolean isCiphered()
- Returns:
- return true if the message is ciphered
getSessionId
public long getSessionId()
- Returns:
- return session Id identifying the security
session
decrypt
public 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
public 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-2005 INRIA All Rights Reserved.