public interface MessageDecryption
| Modifier and Type | Method and Description |
|---|---|
boolean |
bytesAreValid(PublicKey certificate,
byte[] bytes,
byte[] signature)
This method checks to see if the signature for a signed byte array is valid.
|
byte[] |
decodeString(String base64String)
This method decodes a base 64 string into its original bytes.
|
CipherInputStream |
decryptionInputStream(SecretKey sharedKey,
InputStream input)
This method generates an input stream that performs decryption on another input stream.
|
SecretKey |
decryptSharedKey(PrivateKey privateKey,
byte[] encryptedKey)
This method decrypts a shared key using the private key that is paired with the public certificate that was
used to encrypt it at the source.
|
void |
decryptStream(SecretKey sharedKey,
InputStream input,
OutputStream output)
This method decrypts a byte stream from an encrypted byte stream.
|
String |
decryptString(SecretKey sharedKey,
byte[] encryptedString)
This method decrypts a string using a shared key.
|
byte[] decodeString(String base64String)
base64String - The base 64 encoded string.boolean bytesAreValid(PublicKey certificate, byte[] bytes, byte[] signature)
certificate - The certificate containing the matching public key for the private key that signed the bytes.bytes - The byte array to be signed.signature - The signature to be validated.SecretKey decryptSharedKey(PrivateKey privateKey, byte[] encryptedKey)
privateKey - The private key of the destination.encryptedKey - The encrypted shared key.String decryptString(SecretKey sharedKey, byte[] encryptedString)
sharedKey - The shared key used for the encryption.encryptedString - The encrypted string.void decryptStream(SecretKey sharedKey, InputStream input, OutputStream output) throws IOException
sharedKey - The shared key used for the encryption.input - The encrypted byte stream.output - The decrypted byte stream.IOException - Unable to decrypt the stream.CipherInputStream decryptionInputStream(SecretKey sharedKey, InputStream input) throws IOException
sharedKey - The shared key used for the encryption.input - The input stream to be decrypted.IOException - Unable to create a decryption input stream.Copyright © 2015 Crater Dog Technologies(TM). All rights reserved.