Index

A B C D E G H I K O P S T V 
All Classes and Interfaces|All Packages|Serialized Form

A

activate(ComponentContext) - Method in class org.wso2.carbon.crypto.api.internal.CryptoAPIComponent
 
addProperty(String, String) - Method in class org.wso2.carbon.crypto.api.CryptoContext
Adds the given context property value against the given property name.

B

buildEmptyContext(int, String) - Static method in class org.wso2.carbon.crypto.api.CryptoContext
Creates and returns a CryptoContext which has no attribute values other than the tenant information.

C

CertificateInfo - Class in org.wso2.carbon.crypto.api
A simple data holder class which is used to encapsulate either the Certificate or the certificate information which can be used to retrieve the certificate.
CertificateInfo(String, Certificate) - Constructor for class org.wso2.carbon.crypto.api.CertificateInfo
 
CipherMetaDataHolder - Class in org.wso2.carbon.crypto.api
This the POJO class to hold metadata of the cipher.
CipherMetaDataHolder() - Constructor for class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
CryptoAPIComponent - Class in org.wso2.carbon.crypto.api.internal
The component class which is used while activating the OSGi component.
CryptoAPIComponent() - Constructor for class org.wso2.carbon.crypto.api.internal.CryptoAPIComponent
 
CryptoContext - Class in org.wso2.carbon.crypto.api
The class which encapsulated information which is used to find out the correct keys for crypto operations.
CryptoContext(int, String, String, String, String, Map<String, String>) - Constructor for class org.wso2.carbon.crypto.api.CryptoContext
The constructor which accepts all the needed information to create a CryptoContext.
CryptoException - Exception Class in org.wso2.carbon.crypto.api
The exception which will be thrown if something unexpected happens during crypto operations.
CryptoException() - Constructor for exception class org.wso2.carbon.crypto.api.CryptoException
 
CryptoException(String) - Constructor for exception class org.wso2.carbon.crypto.api.CryptoException
 
CryptoException(String, Throwable) - Constructor for exception class org.wso2.carbon.crypto.api.CryptoException
 
CryptoService - Interface in org.wso2.carbon.crypto.api
The service contract of an implementation of a crypto service.
customDecrypt(byte[], String, String, Object...) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Computes and returns the plain text of a given cipher text.
customEncrypt(byte[], String, String, boolean, Object...) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Computes and returns the ciphertext of the given cleartext.

D

decrypt(byte[], String, String) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Computes and returns the cleartext of the given ciphertext.
decrypt(byte[], String, String) - Method in interface org.wso2.carbon.crypto.api.InternalCryptoProvider
Computes and returns the cleartext of the given ciphertext.
decrypt(byte[], String, String, Object...) - Method in interface org.wso2.carbon.crypto.api.InternalCryptoProvider
Computes and returns the cleartext of the given ciphertext.
decrypt(byte[], String, String, String) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Computes and returns the plain text of a given cipher text.
decrypt(byte[], String, String, CryptoContext) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Computes and returns the cleartext of the given ciphertext comes from an external entity.
decrypt(byte[], String, String, CryptoContext, PrivateKeyInfo) - Method in interface org.wso2.carbon.crypto.api.ExternalCryptoProvider
Computes and returns the cleartext of the given ciphertext.

E

encrypt(byte[], String, String) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Computes and returns the ciphertext of the given cleartext.
encrypt(byte[], String, String) - Method in interface org.wso2.carbon.crypto.api.InternalCryptoProvider
Computes and returns the ciphertext of the given cleartext.
encrypt(byte[], String, String, boolean) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Computes and returns the ciphertext of the given cleartext.
encrypt(byte[], String, String, boolean) - Method in interface org.wso2.carbon.crypto.api.InternalCryptoProvider
Computes and returns the ciphertext of the given cleartext.
encrypt(byte[], String, String, boolean, Object...) - Method in interface org.wso2.carbon.crypto.api.InternalCryptoProvider
Computes and returns the ciphertext of the given cleartext.
encrypt(byte[], String, String, boolean, String) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Computes and returns the cipher text of the given cleartext.
encrypt(byte[], String, String, CryptoContext) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Computes and returns the ciphertext of the given cleartext, using asymmetric cryptography.
encrypt(byte[], String, String, CryptoContext, CertificateInfo) - Method in interface org.wso2.carbon.crypto.api.ExternalCryptoProvider
Computes and returns the ciphertext of the given cleartext.
ExternalCryptoProvider - Interface in org.wso2.carbon.crypto.api
The service contract for external crypto providers.

G

getAuthData() - Method in class org.wso2.carbon.crypto.api.HybridEncryptionInput
 
getAuthData() - Method in class org.wso2.carbon.crypto.api.HybridEncryptionOutput
 
getAuthTag() - Method in class org.wso2.carbon.crypto.api.HybridEncryptionOutput
 
getCertificate() - Method in class org.wso2.carbon.crypto.api.CertificateInfo
 
getCertificate(CryptoContext) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Returns the Certificate based on the given CryptoContext.
getCertificate(CryptoContext, CertificateInfo) - Method in interface org.wso2.carbon.crypto.api.ExternalCryptoProvider
Returns the Certificate based on the given CryptoContext.
getCertificateAlias() - Method in class org.wso2.carbon.crypto.api.CertificateInfo
 
getCertificateInfo(CryptoContext) - Method in class org.wso2.carbon.crypto.api.KeyResolver
Returns the discovery information about a certificate, based on the given context.
getCipherBase64Decoded() - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
getCipherData() - Method in class org.wso2.carbon.crypto.api.HybridEncryptionOutput
 
getCipherText() - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
getEncryptedSymmetricKey() - Method in class org.wso2.carbon.crypto.api.HybridEncryptionOutput
 
getIdentifier() - Method in class org.wso2.carbon.crypto.api.CryptoContext
 
getIv() - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
Method to return the initialization vector in AES/GCM/NoPadding transformation.
getIvBase64Decoded() - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
Method to return initialization vector as a byte array
getKeyAlias() - Method in class org.wso2.carbon.crypto.api.PrivateKeyInfo
 
getKeyId() - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
getKeyPassword() - Method in class org.wso2.carbon.crypto.api.PrivateKeyInfo
 
getParameterSpec() - Method in class org.wso2.carbon.crypto.api.HybridEncryptionOutput
 
getPlainData() - Method in class org.wso2.carbon.crypto.api.HybridEncryptionInput
 
getPriority() - Method in class org.wso2.carbon.crypto.api.KeyResolver
Returns the resolver priority.
getPrivateKey(CryptoContext) - Method in interface org.wso2.carbon.crypto.api.PrivateKeyRetriever
 
getPrivateKey(CryptoContext, PrivateKeyInfo) - Method in interface org.wso2.carbon.crypto.api.ExternalCryptoProvider
Returns the PrivateKey based on the given CryptoContext.
getPrivateKeyInfo(CryptoContext) - Method in class org.wso2.carbon.crypto.api.KeyResolver
Returns the discovery information about a private key, based on the given context.
getProperty(String) - Method in class org.wso2.carbon.crypto.api.CryptoContext
Returns the context property which has given property name.
getPurpose() - Method in class org.wso2.carbon.crypto.api.CryptoContext
 
getSelfContainedCiphertextWithIv(byte[], byte[]) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
Combines the original ciphertext and initialization vector (IV) into a single JSON string with metadata and returns it as a byte array.
getSelfContainedCiphertextWithIv(byte[], byte[], String) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
Combines the original ciphertext, initialization vector (IV), and key identifier (KID) into a single JSON string with metadata and returns it as a byte array.
getTenantDomain() - Method in class org.wso2.carbon.crypto.api.CryptoContext
 
getTenantId() - Method in class org.wso2.carbon.crypto.api.CryptoContext
 
getThumbPrint() - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
getThumbprintDigest() - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
getTransformation() - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
getType() - Method in class org.wso2.carbon.crypto.api.CryptoContext
 

H

hybridDecrypt(HybridEncryptionOutput, String, String, String, CryptoContext) - Method in interface org.wso2.carbon.crypto.api.CryptoService
In hybrid decryption symmetric key used for encryption is decrypted with asymmetric decryption and cipher data is decrypted using symmetric decryption mechanism.
hybridDecrypt(HybridEncryptionOutput, String, String, String, CryptoContext, PrivateKeyInfo) - Method in interface org.wso2.carbon.crypto.api.ExternalCryptoProvider
Computes and return clear data based on provided HybridEncryptionOutput.
hybridEncrypt(HybridEncryptionInput, String, String, String, CryptoContext) - Method in interface org.wso2.carbon.crypto.api.CryptoService
In hybrid encryption clear data is encrypted using symmetric encryption mechanism and symmetric key used for encryption is encrypted with asymmetric encryption.
hybridEncrypt(HybridEncryptionInput, String, String, String, CryptoContext, CertificateInfo) - Method in interface org.wso2.carbon.crypto.api.ExternalCryptoProvider
Computes and return a HybridEncryptionOutput based on provided HybridEncryptionInput.
HybridEncryptionInput - Class in org.wso2.carbon.crypto.api
Data holder for hybrid encryption input.
HybridEncryptionInput(byte[]) - Constructor for class org.wso2.carbon.crypto.api.HybridEncryptionInput
Constructor of HybridEncryptionInput which requires only plain data for hybrid encryption.
HybridEncryptionInput(byte[], byte[]) - Constructor for class org.wso2.carbon.crypto.api.HybridEncryptionInput
Constructor of HybridEncryptionInput which requires plain data and authentication data for hybrid encryption.
HybridEncryptionOutput - Class in org.wso2.carbon.crypto.api
Class to store data related to hybrid encryption/decryption.
HybridEncryptionOutput(byte[], byte[]) - Constructor for class org.wso2.carbon.crypto.api.HybridEncryptionOutput
Constructor of Hybrid encryption output data holder.
HybridEncryptionOutput(byte[], byte[], byte[], byte[], AlgorithmParameterSpec) - Constructor for class org.wso2.carbon.crypto.api.HybridEncryptionOutput
Constructor of Hybrid encryption output data holder.
HybridEncryptionOutput(byte[], byte[], AlgorithmParameterSpec) - Constructor for class org.wso2.carbon.crypto.api.HybridEncryptionOutput
Constructor of Hybrid encryption output data holder.

I

InternalCryptoProvider - Interface in org.wso2.carbon.crypto.api
The service contract for internal crypto providers.
isApplicable(CryptoContext) - Method in class org.wso2.carbon.crypto.api.KeyResolver
Checks whether this resolver is applicable for the given context.

K

KeyResolver - Class in org.wso2.carbon.crypto.api
The service contract of an implementation of a key resolver.
KeyResolver() - Constructor for class org.wso2.carbon.crypto.api.KeyResolver
 

O

org.wso2.carbon.crypto.api - package org.wso2.carbon.crypto.api
 
org.wso2.carbon.crypto.api.internal - package org.wso2.carbon.crypto.api.internal
 

P

PrivateKeyInfo - Class in org.wso2.carbon.crypto.api
A simple data holder class which is used to encapsulate discovery information about a private key.
PrivateKeyInfo(String, String) - Constructor for class org.wso2.carbon.crypto.api.PrivateKeyInfo
 
PrivateKeyRetriever - Interface in org.wso2.carbon.crypto.api
The service contract of an implementation of a private key retriever.

S

setCipherBase64Encoded(byte[]) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
Function to base64 encode ciphertext and set ciphertext
setCipherText(String) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
setIv(String) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
Method to set the initialization vector in AES/GCM/NoPadding transformation.
setIvAndOriginalCipherText(byte[]) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
This method extracts the initialization vector, original ciphertext, and key ID from the input ciphertext and sets them to metadata in the CipherMetaDataHolder object.
setKeyId(String) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
setPriority(int) - Method in class org.wso2.carbon.crypto.api.KeyResolver
Sets the resolver priority.
setThumbPrint(String) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
setThumbPrint(String, String) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
Function to set thumbprint
setThumbprintDigest(String) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
setTransformation(String) - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
sign(byte[], String, String, CryptoContext) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Computes and returns the signature of given data.
sign(byte[], String, String, CryptoContext, PrivateKeyInfo) - Method in interface org.wso2.carbon.crypto.api.ExternalCryptoProvider
Computes and returns the signature of given data.

T

toString() - Method in class org.wso2.carbon.crypto.api.CertificateInfo
 
toString() - Method in class org.wso2.carbon.crypto.api.CipherMetaDataHolder
 
toString() - Method in class org.wso2.carbon.crypto.api.CryptoContext
 
toString() - Method in class org.wso2.carbon.crypto.api.KeyResolver
 
toString() - Method in class org.wso2.carbon.crypto.api.PrivateKeyInfo
 

V

verifySignature(byte[], byte[], String, String, CryptoContext) - Method in interface org.wso2.carbon.crypto.api.CryptoService
Verifies whether given signature of the given data was generated by a trusted external party.
verifySignature(byte[], byte[], String, String, CryptoContext, CertificateInfo) - Method in interface org.wso2.carbon.crypto.api.ExternalCryptoProvider
Verifies whether given signature of the given data was generated by a trusted external party.
A B C D E G H I K O P S T V 
All Classes and Interfaces|All Packages|Serialized Form