cgl.narada.service.security
Interface EntityOperations

All Known Implementing Classes:
EntityOperationsImpl

public interface EntityOperations

This interface encapsulates the set of operations that need to be performed by an entity. $Date$ $Revision$


Method Summary
 byte[] decryptPayload(SecretKey secretTemplateKey, byte[] encryptedBytes)
           
 byte[] encryptPayload(SecretKey secretTemplateKey, byte[] messageBytes)
           
 byte[] generateMessageDigest(byte[] encryptedPayload, String algorithm)
          Generate a message digest for the payload
 byte[] signPayload(byte[] payload, PrivateKey personalPrivateKey)
          Method to sign a payload with the entity's personal private key
 boolean validateMessageDigest(byte[] originalDigest, byte[] encryptedPayload, String algorithm)
          Check the message integrity
 boolean validateSAMLAssertion(String assertion)
          Validates the assertion speficied in the message
 boolean validateSignature(byte[] signature, byte[] payload, PublicKey publisherPublicKey)
          Validates the signature associated with an encrypted payload to confirm whether the payload has been tampered with and also to check if the publisher is an authorized one
 

Method Detail

encryptPayload

byte[] encryptPayload(SecretKey secretTemplateKey,
                      byte[] messageBytes)
                      throws ServiceException
Throws:
ServiceException

decryptPayload

byte[] decryptPayload(SecretKey secretTemplateKey,
                      byte[] encryptedBytes)
                      throws ServiceException
Throws:
ServiceException

signPayload

byte[] signPayload(byte[] payload,
                   PrivateKey personalPrivateKey)
                   throws ServiceException
Method to sign a payload with the entity's personal private key

Throws:
ServiceException

validateSignature

boolean validateSignature(byte[] signature,
                          byte[] payload,
                          PublicKey publisherPublicKey)
                          throws ServiceException
Validates the signature associated with an encrypted payload to confirm whether the payload has been tampered with and also to check if the publisher is an authorized one

Throws:
ServiceException

generateMessageDigest

byte[] generateMessageDigest(byte[] encryptedPayload,
                             String algorithm)
                             throws ServiceException
Generate a message digest for the payload

Throws:
ServiceException

validateMessageDigest

boolean validateMessageDigest(byte[] originalDigest,
                              byte[] encryptedPayload,
                              String algorithm)
                              throws ServiceException
Check the message integrity

Throws:
ServiceException

validateSAMLAssertion

boolean validateSAMLAssertion(String assertion)
                              throws ServiceException
Validates the assertion speficied in the message

Throws:
ServiceException


For comments and suggestions please send e-mail to The NaradaBrokering Project