|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.service.security.impl.EntityOperationsImpl
public class EntityOperationsImpl
This interface encapsulates the set of operations that need to be performed to ensure secure messaging. $Date$ $Revision$
| Field Summary | |
|---|---|
Hashtable |
providers
|
static String |
providerToUse
|
static String |
str
|
| Constructor Summary | |
|---|---|
EntityOperationsImpl()
|
|
| Method Summary | |
|---|---|
byte[] |
decryptPayload(PrivateKey privateTopicKey,
byte[] encryptedBytes)
|
byte[] |
decryptPayload(PrivateKey privateTopicKey,
String mode,
String padding,
byte[] encryptedBytes)
|
byte[] |
decryptPayload(PrivateKey privateTopicKey,
String mode,
String padding,
String provider,
byte[] encryptedBytes)
|
byte[] |
decryptPayload(SecretKey secretTopicKey,
byte[] encryptedBytes)
|
byte[] |
decryptPayload(SecretKey secretTopicKey,
byte[] encryptedBytes,
String algModePadding,
byte[] iv,
String provider)
|
byte[] |
decryptPayload(SecretKey secretTopicKey,
String mode,
String padding,
byte[] encryptedPayloadBytes,
byte[] iv)
|
byte[] |
decryptPayload(SecretKey secretTopicKey,
String mode,
String padding,
String provider,
byte[] encryptedPayloadBytes,
byte[] iv)
|
byte[] |
encryptPayload(PublicKey publicTopicKey,
byte[] messageBytes)
|
byte[] |
encryptPayload(PublicKey publicTopicKey,
String mode,
String padding,
byte[] payloadBytes)
|
byte[] |
encryptPayload(PublicKey publicTopicKey,
String mode,
String padding,
String provider,
byte[] payloadBytes)
|
byte[] |
encryptPayload(SecretKey secretTopicKey,
byte[] messageBytes)
|
byte[] |
encryptPayload(SecretKey secretTopicKey,
byte[] messageBytes,
String algModePadding,
byte[] iv,
String provider)
|
byte[] |
encryptPayload(SecretKey secretTopicKey,
String mode,
String padding,
byte[] payloadBytes,
byte[] iv)
|
byte[] |
encryptPayload(SecretKey secretTopicKey,
String mode,
String padding,
String provider,
byte[] payloadBytes,
byte[] iv)
|
byte[] |
generateMessageDigest(byte[] encryptedMessage,
String algorithm)
Generate a message digest for the message |
byte[] |
generateMessageDigest(String algorithm,
String provider,
byte[] encryptedPayload)
Generate a message digest for the message |
byte[] |
getIV(SecretKey secretTopicKey,
String mode,
String padding)
|
byte[] |
getIV(SecretKey secretTopicKey,
String mode,
String padding,
String provider)
|
byte[] |
getIV(String alg,
String mode,
String padding)
|
static void |
main(String[] args)
|
byte[] |
signPayload(byte[] message,
PrivateKey personalPrivateKey)
Method to sign a message with the entity's personal private key |
byte[] |
signPayload(byte[] payload,
PrivateKey personalPrivateKey,
String algorithm)
Method to sign a message with the entity's personal private key |
byte[] |
signPayload(PrivateKey personalPrivateKey,
String algorithm,
String provider,
byte[] payload)
Method to sign a message with the entity's personal private key |
void |
testOpsOnPayload(SecretKey secretTopicKey,
byte[] messageBytes,
String mode,
String padding,
String provider)
|
boolean |
validateMessageDigest(byte[] originalDigest,
byte[] encryptedMessage,
String algorithm)
Check the message integrity |
boolean |
validateMessageDigest(String algorithm,
String provider,
byte[] encryptedPayload,
byte[] originalDigest)
Check the message integrity |
boolean |
validateSAMLAssertion(String assertion)
Validates the assertion speficied in the message |
boolean |
validateSignature(byte[] signatureBytes,
byte[] message,
PublicKey publisherPublicKey)
Validates the signature associated with an encrypted message to confirm whether the message has been tampered with and also to check if the publisher is an authorized one |
boolean |
validateSignature(byte[] payload,
byte[] signatureBytes,
PublicKey publisherPublicKey,
String algorithm)
Validates the signature associated with an encrypted message to confirm whether the message has been tampered with and also to check if the publisher is an authorized one |
boolean |
validateSignature(PublicKey publisherPublicKey,
String algorithm,
String provider,
byte[] payload,
byte[] signatureBytes)
Validates the signature associated with an encrypted message to confirm whether the message has been tampered with and also to check if the publisher is an authorized one |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Hashtable providers
public static String str
public static String providerToUse
| Constructor Detail |
|---|
public EntityOperationsImpl()
throws ServiceException
ServiceException| Method Detail |
|---|
public byte[] getIV(String alg,
String mode,
String padding)
throws ServiceException
ServiceException
public byte[] encryptPayload(SecretKey secretTopicKey,
byte[] messageBytes,
String algModePadding,
byte[] iv,
String provider)
throws ServiceException
ServiceException
public byte[] decryptPayload(SecretKey secretTopicKey,
byte[] encryptedBytes,
String algModePadding,
byte[] iv,
String provider)
throws ServiceException
ServiceException
public byte[] encryptPayload(PublicKey publicTopicKey,
byte[] messageBytes)
throws ServiceException
ServiceException
public byte[] decryptPayload(PrivateKey privateTopicKey,
byte[] encryptedBytes)
throws ServiceException
ServiceException
public byte[] encryptPayload(PublicKey publicTopicKey,
String mode,
String padding,
byte[] payloadBytes)
throws ServiceException
ServiceException
public byte[] encryptPayload(PublicKey publicTopicKey,
String mode,
String padding,
String provider,
byte[] payloadBytes)
throws ServiceException
ServiceException
public byte[] decryptPayload(PrivateKey privateTopicKey,
String mode,
String padding,
byte[] encryptedBytes)
throws ServiceException
ServiceException
public byte[] decryptPayload(PrivateKey privateTopicKey,
String mode,
String padding,
String provider,
byte[] encryptedBytes)
throws ServiceException
ServiceException
public byte[] encryptPayload(SecretKey secretTopicKey,
byte[] messageBytes)
throws ServiceException
encryptPayload in interface EntityOperationsServiceException
public byte[] decryptPayload(SecretKey secretTopicKey,
byte[] encryptedBytes)
throws ServiceException
decryptPayload in interface EntityOperationsServiceException
public byte[] getIV(SecretKey secretTopicKey,
String mode,
String padding)
throws ServiceException
ServiceException
public byte[] getIV(SecretKey secretTopicKey,
String mode,
String padding,
String provider)
throws ServiceException
ServiceException
public byte[] encryptPayload(SecretKey secretTopicKey,
String mode,
String padding,
byte[] payloadBytes,
byte[] iv)
throws ServiceException
ServiceException
public byte[] encryptPayload(SecretKey secretTopicKey,
String mode,
String padding,
String provider,
byte[] payloadBytes,
byte[] iv)
throws ServiceException
ServiceException
public byte[] decryptPayload(SecretKey secretTopicKey,
String mode,
String padding,
byte[] encryptedPayloadBytes,
byte[] iv)
throws ServiceException
ServiceException
public byte[] decryptPayload(SecretKey secretTopicKey,
String mode,
String padding,
String provider,
byte[] encryptedPayloadBytes,
byte[] iv)
throws ServiceException
ServiceException
public void testOpsOnPayload(SecretKey secretTopicKey,
byte[] messageBytes,
String mode,
String padding,
String provider)
throws ServiceException
ServiceException
public byte[] signPayload(byte[] message,
PrivateKey personalPrivateKey)
throws ServiceException
signPayload in interface EntityOperationsServiceException
public boolean validateSignature(byte[] signatureBytes,
byte[] message,
PublicKey publisherPublicKey)
throws ServiceException
validateSignature in interface EntityOperationsServiceException
public byte[] signPayload(byte[] payload,
PrivateKey personalPrivateKey,
String algorithm)
throws ServiceException
ServiceException
public byte[] signPayload(PrivateKey personalPrivateKey,
String algorithm,
String provider,
byte[] payload)
throws ServiceException
ServiceException
public boolean validateSignature(byte[] payload,
byte[] signatureBytes,
PublicKey publisherPublicKey,
String algorithm)
throws ServiceException
ServiceException
public boolean validateSignature(PublicKey publisherPublicKey,
String algorithm,
String provider,
byte[] payload,
byte[] signatureBytes)
throws ServiceException
ServiceException
public byte[] generateMessageDigest(byte[] encryptedMessage,
String algorithm)
throws ServiceException
generateMessageDigest in interface EntityOperationsServiceException
public boolean validateMessageDigest(byte[] originalDigest,
byte[] encryptedMessage,
String algorithm)
throws ServiceException
validateMessageDigest in interface EntityOperationsServiceException
public byte[] generateMessageDigest(String algorithm,
String provider,
byte[] encryptedPayload)
throws ServiceException
ServiceException
public boolean validateMessageDigest(String algorithm,
String provider,
byte[] encryptedPayload,
byte[] originalDigest)
throws ServiceException
ServiceExceptionpublic boolean validateSAMLAssertion(String assertion)
validateSAMLAssertion in interface EntityOperationspublic static void main(String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||