Skip navigation links
A C D E G H I K N P R S T U V 

A

AesDecrypter - Class in io.token.security.cipher.aes
AES decrypter implementation.
AesDecrypter(SecretKey) - Constructor for class io.token.security.cipher.aes.AesDecrypter
Creates a decrypter for the specified key using default encryption algorithms.
AesDecrypter(String, SecretKey) - Constructor for class io.token.security.cipher.aes.AesDecrypter
Creates a decrypter for the specified key using default encryption algorithms.
AesEncrypter - Class in io.token.security.cipher.aes
AES encrypter implementation.
AesEncrypter(SecretKey) - Constructor for class io.token.security.cipher.aes.AesEncrypter
Creates an encrypter for the specified key using default encryption algorithms.
AesEncrypter(String, SecretKey) - Constructor for class io.token.security.cipher.aes.AesEncrypter
Creates an encrypter for the specified key using specific encryption algorithms.
AesSecretKeyProvider - Class in io.token.security.crypto
AES secret key provider.
AesSecretKeyProvider() - Constructor for class io.token.security.crypto.AesSecretKeyProvider
 

C

CadesSigner - Class in io.token.security.crypto
CAdES signatures must be compliant to the regulations set by ETSI 319 122.
CadesSigner(String, PrivateKey, X509Certificate) - Constructor for class io.token.security.crypto.CadesSigner
Creates a new signer for CAdES signatures.
certificate() - Method in class io.token.security.keystore.SecretKeyPair
Returns certificate.
CipherHelper - Class in io.token.security.cipher
 
CipherHelper() - Constructor for class io.token.security.cipher.CipherHelper
 
create(CryptoType) - Static method in class io.token.security.keystore.SecretKeyPair
Creates a new secret key pair.
create(boolean, CryptoType) - Static method in class io.token.security.keystore.SecretKeyPair
Creates a new secret key pair.
create(boolean, CryptoType, KeyPair) - Static method in class io.token.security.keystore.SecretKeyPair
Creates a new secret key pair.
create(boolean, CryptoType, KeyPair, X509Certificate) - Static method in class io.token.security.keystore.SecretKeyPair
Creates a new secret key pair.
create(CryptoType, PublicKey) - Static method in class io.token.security.keystore.TrustedKey
Creates new trusted key instance.
createDecrypter(String) - Method in class io.token.security.keystore.InMemorySecretKeyStore
 
createDecrypter(String) - Method in interface io.token.security.SecretKeyStore
Creates a new instance of decrypter for a given keyId.
createEncrypter(String) - Method in class io.token.security.keystore.InMemoryTrustedKeyStore
 
createEncrypter(String) - Method in interface io.token.security.TrustedKeyStore
Creates a new instance of encrypter for a given keyId.
createSecretKeyPair(Config) - Static method in class io.token.security.keystore.KeyStoreFactory
Parses a private key from config.
createSecretKeyPair(String, String, String, boolean) - Static method in class io.token.security.keystore.KeyStoreFactory
Creates a key pair using given params.
createSecretKeyStore(List<? extends Config>) - Static method in class io.token.security.keystore.KeyStoreFactory
Creates secret key store configured based on the passed in config.
createSecretKeyStoreFromKeys(List<SecretKeyPair>) - Static method in class io.token.security.keystore.KeyStoreFactory
Creates secret key store configured based on the passed in AuthConfig proto.
createSigner() - Method in class io.token.security.keystore.InMemorySecretKeyStore
 
createSigner(String) - Method in class io.token.security.keystore.InMemorySecretKeyStore
 
createSigner(SignatureScheme) - Method in class io.token.security.keystore.InMemorySecretKeyStore
 
createSigner(String, SignatureScheme) - Method in class io.token.security.keystore.InMemorySecretKeyStore
 
createSigner() - Method in interface io.token.security.SecretKeyStore
Creates a new instance of signer using keystore active key.
createSigner(String) - Method in interface io.token.security.SecretKeyStore
Creates a new instance of signer using the specified key id.
createSigner(SignatureScheme) - Method in interface io.token.security.SecretKeyStore
Creates a new instance of signer using keystore active key and signature scheme.
createSigner(String, SignatureScheme) - Method in interface io.token.security.SecretKeyStore
Creates a new instance of CAdES signer using the specified key and signature scheme.
createTrustedKeyStore(List<? extends Config>) - Static method in class io.token.security.keystore.KeyStoreFactory
Creates trusted key store configured based on the passed in config.
createVerifier(String) - Method in class io.token.security.keystore.InMemorySecretKeyStore
 
createVerifier(String) - Method in class io.token.security.keystore.InMemoryTrustedKeyStore
 
createVerifier(String) - Method in interface io.token.security.SecretKeyStore
Creates a new instance of verifier using the specified key id.
createVerifier(String) - Method in interface io.token.security.TrustedKeyStore
Creates a new instance of verifier using the specified key id.
Crypto - Interface in io.token.security.crypto
An implementation of the interface provides algorithm-specific cryptography functionality.
cryptoFor(CryptoType) - Method in class io.token.security.crypto.CryptoRegistry
Returns a crypto by algorithm name.
cryptoFor(SecurityProtos.Key.Algorithm) - Method in class io.token.security.crypto.CryptoRegistry
Returns a crypto by proto algorithm type.
cryptoFor(CryptoType) - Static method in class io.token.security.keystore.KeyStoreFactory
Returns crypto that matches the specified algorithm.
CryptoRegistry - Class in io.token.security.crypto
A registry of crypto algorithm.
CryptoType - Enum in io.token.security.crypto
Lists all the available digital signature cryptos that we use.
cryptoType() - Method in class io.token.security.keystore.SecretKeyPair
Crypto type, the algorithm used for signing and verification.
cryptoType() - Method in class io.token.security.keystore.TrustedKey
Crypto type, the algorithm used for signing and verification.

D

decode(String) - Static method in class io.token.security.cipher.CipherHelper
 
decrypt(String) - Method in class io.token.security.cipher.aes.AesDecrypter
Decrypts the specified ciphertext.
decrypt(byte[], Cipher) - Static method in class io.token.security.cipher.CipherHelper
Decrypts the sealed message using the specified cipher.
decrypt(byte[], Cipher, int) - Static method in class io.token.security.cipher.CipherHelper
Decrypts the sealed message using the specified cipher.
decrypt(String) - Method in class io.token.security.cipher.noop.NoopDecrypter
 
decrypt(String) - Method in class io.token.security.cipher.rsa.RsaDecrypter
Decrypts data encrypted with RSA blocks.
decrypt(String) - Method in interface io.token.security.Decrypter
Decrypts the specified ciphertext.
decrypt(SecurityProtos.SealedMessage) - Method in class io.token.security.sealed.NoopSealedMessageDecrypter
Decrypts the specified message.
decrypt(SecurityProtos.SealedMessage) - Method in class io.token.security.sealed.SealedMessageDecrypter
Decrypts the specified message.
Decrypter - Interface in io.token.security
 

E

EdDsaCrypto - Class in io.token.security.crypto
 
encode(byte[]) - Static method in class io.token.security.cipher.CipherHelper
 
encode(Key) - Method in class io.token.security.crypto.EdDsaCrypto
 
encrypt(String) - Method in class io.token.security.cipher.aes.AesEncrypter
Encrypts the specified text using a symmetric key.
encrypt(String, Cipher) - Static method in class io.token.security.cipher.CipherHelper
Encrypts the specified text using a given cipher.
encrypt(String, Cipher, int) - Static method in class io.token.security.cipher.CipherHelper
Encrypts the specified text using a given cipher.
encrypt(String) - Method in class io.token.security.cipher.noop.NoopEncrypter
 
encrypt(String) - Method in class io.token.security.cipher.rsa.RsaEncrypter
 
encrypt(String) - Method in interface io.token.security.Encrypter
Encripts the specified payload.
encrypt(String) - Method in class io.token.security.sealed.NoopSealedMessageEncrypter
Encrypts the specified payload.
encrypt(String, String, SecurityProtos.SealedMessage.MethodCase) - Method in class io.token.security.sealed.SealedMessageEncrypter
Encrypts the specified message.
Encrypter - Interface in io.token.security
 
equals(Object) - Method in class io.token.security.keystore.SecretKeyPair
 

G

generateKeyPair() - Method in class io.token.security.crypto.EdDsaCrypto
 
generateKeyPair() - Method in interface io.token.security.crypto.KeyPairProvider
Generates a new key pair for this crypto.
generateSecretKey() - Method in class io.token.security.crypto.AesSecretKeyProvider
 
generateSecretKey(int) - Method in class io.token.security.crypto.AesSecretKeyProvider
Generates a new secret key of a given size.
generateSecretKey() - Method in interface io.token.security.crypto.SecretKeyProvider
Generates a new secret key.
getAlgorithm() - Method in class io.token.security.cipher.aes.AesEncrypter
 
getAlgorithm() - Method in class io.token.security.cipher.noop.NoopEncrypter
 
getAlgorithm() - Method in class io.token.security.cipher.rsa.RsaEncrypter
 
getAlgorithm() - Method in class io.token.security.crypto.CadesSigner
 
getAlgorithm() - Method in interface io.token.security.crypto.Crypto
Returns the Java name of the algorithm used by this crypto.
getAlgorithm() - Method in class io.token.security.crypto.EdDsaCrypto
 
getAlgorithm() - Method in interface io.token.security.Encrypter
Returns the algorithm name of the encrypter.
getAlgorithm() - Method in interface io.token.security.Signer
Returns the algorithm for the Key used for signing.
getInstance() - Static method in class io.token.security.crypto.AesSecretKeyProvider
Returns the singleton instance of this provider.
getInstance() - Static method in class io.token.security.crypto.CryptoRegistry
Returns the instance of the registry singleton.
getKeyAlgorithm() - Method in enum io.token.security.crypto.CryptoType
Key algorithm as defined by the public API.
getKeyId() - Method in class io.token.security.crypto.CadesSigner
 
getKeyId() - Method in interface io.token.security.Signer
Returns the Key ID used for signing.
getPublicKeys() - Method in class io.token.security.keystore.InMemorySecretKeyStore
 
getPublicKeys() - Method in class io.token.security.keystore.InMemoryTrustedKeyStore
 
getPublicKeys() - Method in interface io.token.security.SecretKeyStore
Returns a list of public keys.
getPublicKeys() - Method in interface io.token.security.TrustedKeyStore
Returns a list of public keys.

H

hasCertificate() - Method in class io.token.security.keystore.SecretKeyPair
Checks if a certificate is present.
hashCode() - Method in class io.token.security.keystore.SecretKeyPair
 

I

id() - Method in class io.token.security.keystore.SecretKeyPair
Returns key id.
id() - Method in class io.token.security.keystore.TrustedKey
Key id.
InMemorySecretKeyStore - Class in io.token.security.keystore
Not a secure implementation that expects to find keys in the config file.
InMemorySecretKeyStore(SecretKeyPair...) - Constructor for class io.token.security.keystore.InMemorySecretKeyStore
Creates a new instance of the keystore using a single key pair.
InMemorySecretKeyStore(List<SecretKeyPair>) - Constructor for class io.token.security.keystore.InMemorySecretKeyStore
Creates a new instance for a given list of keys.
InMemoryTrustedKeyStore - Class in io.token.security.keystore
A generic implementation of a trusted keystore relying on all keys to be provided at the time of creation.
InMemoryTrustedKeyStore(TrustedKey...) - Constructor for class io.token.security.keystore.InMemoryTrustedKeyStore
Creates a new instance of the keystore using a single key.
InMemoryTrustedKeyStore(List<TrustedKey>) - Constructor for class io.token.security.keystore.InMemoryTrustedKeyStore
Creates an instance from a list of keys.
InvalidSignatureException - Exception in io.token.security
Thrown if a signature verification fails.
InvalidSignatureException(String) - Constructor for exception io.token.security.InvalidSignatureException
 
InvalidSignatureException(Throwable) - Constructor for exception io.token.security.InvalidSignatureException
 
io.token.security - package io.token.security
 
io.token.security.cipher - package io.token.security.cipher
 
io.token.security.cipher.aes - package io.token.security.cipher.aes
 
io.token.security.cipher.noop - package io.token.security.cipher.noop
 
io.token.security.cipher.rsa - package io.token.security.cipher.rsa
 
io.token.security.crypto - package io.token.security.crypto
 
io.token.security.dagger - package io.token.security.dagger
 
io.token.security.keystore - package io.token.security.keystore
 
io.token.security.sealed - package io.token.security.sealed
 
isActive() - Method in class io.token.security.keystore.SecretKeyPair
Returns true if this key is the active key.

K

key() - Method in class io.token.security.keystore.SecretKeyPair
Returns key pair.
KeyNotFoundException - Exception in io.token.security
 
KeyNotFoundException(String) - Constructor for exception io.token.security.KeyNotFoundException
 
KeyPairProvider - Interface in io.token.security.crypto
 
KeyStoreFactory - Class in io.token.security.keystore
Helper methods to parse security related configuration.

N

nonBlocking() - Static method in class io.token.security.SecureRandomProvider
Return non blocking secure random or default secure random if non blocking is not available.
NoopDecrypter - Class in io.token.security.cipher.noop
Noop decrypter implementation.
NoopDecrypter() - Constructor for class io.token.security.cipher.noop.NoopDecrypter
 
NoopEncrypter - Class in io.token.security.cipher.noop
Noop encrypter implementation.
NoopEncrypter() - Constructor for class io.token.security.cipher.noop.NoopEncrypter
 
NoopSealedMessageDecrypter - Class in io.token.security.sealed
This class decorates sealed message decrypter to simplify usage of the NOOP implementation.
NoopSealedMessageDecrypter() - Constructor for class io.token.security.sealed.NoopSealedMessageDecrypter
Creates a new instance of the decrypter.
NoopSealedMessageEncrypter - Class in io.token.security.sealed
This class decorates sealed message encrypter to simplify usage of the NOOP implementation.
NoopSealedMessageEncrypter() - Constructor for class io.token.security.sealed.NoopSealedMessageEncrypter
Creates a new instance of the encrypter.

P

privateKey() - Method in class io.token.security.keystore.SecretKeyPair
Returns private key.
privateKeyString() - Method in class io.token.security.keystore.SecretKeyPair
Returns private key in a string format (encoded).
publicKey() - Method in class io.token.security.keystore.SecretKeyPair
Returns public key.
publicKey() - Method in class io.token.security.keystore.TrustedKey
Returns public key.
publicKeyString() - Method in class io.token.security.keystore.SecretKeyPair
Returns public key in a string format (encoded).
publicKeyString() - Method in class io.token.security.keystore.TrustedKey
Returns public key in a string format (encoded).

R

RsaDecrypter - Class in io.token.security.cipher.rsa
RSA blocks decrypter implementation.
RsaDecrypter(PrivateKey) - Constructor for class io.token.security.cipher.rsa.RsaDecrypter
Creates a decrypter for the specified key, using default encryption algorithms.
RsaDecrypter(String, PrivateKey) - Constructor for class io.token.security.cipher.rsa.RsaDecrypter
Creates a new decrypter for the specified key pair using specific encryption algorithms.
RsaEncrypter - Class in io.token.security.cipher.rsa
RSA blocks encrypter implementation.
RsaEncrypter(PublicKey) - Constructor for class io.token.security.cipher.rsa.RsaEncrypter
Creates an rsa encrypter for the specified public key, using default encryption algorithms.
RsaEncrypter(String, int, PublicKey) - Constructor for class io.token.security.cipher.rsa.RsaEncrypter
Creates an rsa encrypter for the specified key, using specific encryption algorithms.

S

SealedMessageDecrypter - Class in io.token.security.sealed
A sealed message decrypter.
SealedMessageDecrypter(SecretKeyStore, TrustedKeyStore) - Constructor for class io.token.security.sealed.SealedMessageDecrypter
Creates a new instance of the decrypter.
SealedMessageDecrypter(SecretKeyStore, TrustedKeyStore, Set<SecurityProtos.SealedMessage.MethodCase>) - Constructor for class io.token.security.sealed.SealedMessageDecrypter
Creates a new instance of the decrypter.
SealedMessageEncrypter - Class in io.token.security.sealed
A sealed message encrypter.
SealedMessageEncrypter(SecretKeyStore, TrustedKeyStore) - Constructor for class io.token.security.sealed.SealedMessageEncrypter
Creates a new instance of the encrypter.
SecretKeyPair - Class in io.token.security.keystore
A key trusted by InMemorySecretKeyStore.
SecretKeyPair() - Constructor for class io.token.security.keystore.SecretKeyPair
 
SecretKeyProvider - Interface in io.token.security.crypto
 
SecretKeyStore - Interface in io.token.security
A private key + certificate store.
SecureRandomProvider - Class in io.token.security
 
SecurityModule - Class in io.token.security.dagger
 
SecurityModule() - Constructor for class io.token.security.dagger.SecurityModule
 
serialize(Key) - Method in class io.token.security.crypto.AesSecretKeyProvider
 
serialize(Key) - Method in interface io.token.security.crypto.KeyPairProvider
Returns a serialized representation of the specified key.
serialize(Key) - Method in interface io.token.security.crypto.SecretKeyProvider
Returns a serialized representation of the specified key.
sign(Message) - Method in class io.token.security.crypto.CadesSigner
 
sign(String) - Method in class io.token.security.crypto.CadesSigner
 
sign(Message) - Method in interface io.token.security.Signer
Signs protobuf message.
sign(String) - Method in interface io.token.security.Signer
Used for testing, signs the payload with the test key.
SignatureScheme - Enum in io.token.security
The signature packaging schemes that we support.
signer(String, PrivateKey) - Method in interface io.token.security.crypto.Crypto
Creates a new signer using the specified key.
Signer - Interface in io.token.security
 

T

toPrivateKey(String) - Method in class io.token.security.crypto.EdDsaCrypto
 
toPrivateKey(String) - Method in interface io.token.security.crypto.KeyPairProvider
Converts the provided serialized key into a private key.
toPublicKey(String) - Method in class io.token.security.crypto.EdDsaCrypto
 
toPublicKey(String) - Method in interface io.token.security.crypto.KeyPairProvider
Converts the provided serialized key into a public key.
toSecretKey(String) - Method in class io.token.security.crypto.AesSecretKeyProvider
 
toSecretKey(String) - Method in interface io.token.security.crypto.SecretKeyProvider
Converts the provided serialized key into a secret key.
toString() - Method in class io.token.security.keystore.SecretKeyPair
 
toTrustedKey() - Method in class io.token.security.keystore.SecretKeyPair
Converts secret key to the TrustedKey.
TrustedKey - Class in io.token.security.keystore
A key trusted by InMemoryTrustedKeyStore.
TrustedKey() - Constructor for class io.token.security.keystore.TrustedKey
 
TrustedKeyStore - Interface in io.token.security
A keystore used for payload signature verification.
tryCryptoFor(SecurityProtos.Key.Algorithm) - Method in class io.token.security.crypto.CryptoRegistry
Returns a crypto by proto algorithm type.

U

UnknownCipherMethodException - Exception in io.token.security.sealed
The exception is thrown when an implementation of a cipher method is unknown to the processing service.
UnknownCipherMethodException(String) - Constructor for exception io.token.security.sealed.UnknownCipherMethodException
Creates a new instance of the exception.

V

valueOf(String) - Static method in enum io.token.security.crypto.CryptoType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum io.token.security.SignatureScheme
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.token.security.crypto.CryptoType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum io.token.security.SignatureScheme
Returns an array containing the constants of this enum type, in the order they are declared.
verifier(PublicKey) - Method in interface io.token.security.crypto.Crypto
Creates a new verifier using the specified public key.
Verifier - Interface in io.token.security
 
verify(Message, String) - Method in interface io.token.security.Verifier
Verifies the protobuf payload signature.
verify(String, String) - Method in interface io.token.security.Verifier
Verifies the payload signature.
A C D E G H I K N P R S T U V 
Skip navigation links