|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Crypto
Interface for all the interanction with the ETEE cryptolib.
ConfigurableImplementation CryptoImpl CryptoFactory
| Nested Class Summary | |
|---|---|
static class |
Crypto.SigningPolicySelector
|
| Field Summary | |
|---|---|
static String |
DATASEALER_CREDENTIAL
Key used to pass the Credential as init param in the
ConfigurableFactoryHelper |
static String |
DATAUNSEALER_PKMAP
Key used to pass the Map as init param in the ConfigurableFactoryHelper |
static String |
OCSP_OPTIONMAP
Optional Map< OCSPOption,Object> |
static String |
OCSP_POLICY
Optional ocsp_policy to use OCSPPolicy
Default OCSPPolicy.NONE |
static String |
SIGNING_OPTIONMAP
Optional Map< SigningOption,Object> |
| Method Summary | |
|---|---|
Key |
generateSecretKey()
Deprecated. replaced by ConnectorCryptoUtils.generatedKey(); |
Key |
getSymmKey()
Deprecated. replaced by ConnectorCryptoUtils.generatedKey(); |
byte[] |
seal(byte[] content,
SecretKey secretKey,
String keyId)
Deprecated. replaced by seal(SigningPolicySelector, KeyResult, byte[]) |
byte[] |
seal(Crypto.SigningPolicySelector type,
EncryptionToken enncryptionToken,
byte[] content)
|
byte[] |
seal(Crypto.SigningPolicySelector type,
KeyResult symmKey,
byte[] content)
|
byte[] |
seal(Crypto.SigningPolicySelector type,
Set<EncryptionToken> paramEncryptionTokenSet,
byte[] content)
|
byte[] |
seal(Crypto.SigningPolicySelector type,
Set<EncryptionToken> paramEncryptionTokenSet,
KeyResult symmKey,
byte[] content)
|
byte[] |
seal(EncryptionToken paramEncryptionToken,
byte[] content)
Deprecated. replaced by seal(SigningPolicySelector, EncryptionToken, byte[]) |
byte[] |
seal(Set<EncryptionToken> paramEncryptionTokenSet,
byte[] content)
Deprecated. replaced by seal(SigningPolicySelector, Set, byte[]) |
byte[] |
seal(Set<EncryptionToken> paramEncryptionTokenSet,
byte[] content,
SecretKey secretKey,
String keyId)
Deprecated. replaced by seal(SigningPolicySelector, Set, KeyResult, byte[]) |
byte[] |
unseal(byte[] message)
Deprecated. replaced by unseal(SigningPolicySelector, byte[]) |
UnsealedData |
unseal(Crypto.SigningPolicySelector type,
byte[] protectedMessage)
|
UnsealedData |
unseal(Crypto.SigningPolicySelector type,
KeyResult symmKey,
byte[] protectedMessage)
|
byte[] |
unsealForUnknown(SecretKey key,
byte[] protectedMessage)
Deprecated. replaced by unseal(SigningPolicySelector, KeyResult, byte[]) |
| Methods inherited from interface be.ehealth.technicalconnector.utils.ConfigurableImplementation |
|---|
initialize |
| Field Detail |
|---|
static final String DATAUNSEALER_PKMAP
Map as init param in the ConfigurableFactoryHelper
static final String DATASEALER_CREDENTIAL
Credential as init param in the
ConfigurableFactoryHelper
static final String OCSP_OPTIONMAP
OCSPOption,Object>
static final String SIGNING_OPTIONMAP
SigningOption,Object>
static final String OCSP_POLICY
OCSPPolicy
Default OCSPPolicy.NONE
| Method Detail |
|---|
@Deprecated byte[] seal(EncryptionToken paramEncryptionToken, byte[] content) throws TechnicalConnectorException
seal(SigningPolicySelector, EncryptionToken, byte[])
TechnicalConnectorException@Deprecated byte[] seal(Set<EncryptionToken> paramEncryptionTokenSet, byte[] content) throws TechnicalConnectorException
seal(SigningPolicySelector, Set, byte[])
TechnicalConnectorException@Deprecated byte[] seal(byte[] content, SecretKey secretKey, String keyId) throws TechnicalConnectorException
seal(SigningPolicySelector, KeyResult, byte[])
TechnicalConnectorException@Deprecated byte[] seal(Set<EncryptionToken> paramEncryptionTokenSet, byte[] content, SecretKey secretKey, String keyId) throws TechnicalConnectorException
seal(SigningPolicySelector, Set, KeyResult, byte[])
TechnicalConnectorExceptionbyte[] seal(Crypto.SigningPolicySelector type, EncryptionToken enncryptionToken, byte[] content) throws TechnicalConnectorException
TechnicalConnectorExceptionbyte[] seal(Crypto.SigningPolicySelector type, Set<EncryptionToken> paramEncryptionTokenSet, byte[] content) throws TechnicalConnectorException
TechnicalConnectorExceptionbyte[] seal(Crypto.SigningPolicySelector type, KeyResult symmKey, byte[] content) throws TechnicalConnectorException
TechnicalConnectorExceptionbyte[] seal(Crypto.SigningPolicySelector type, Set<EncryptionToken> paramEncryptionTokenSet, KeyResult symmKey, byte[] content) throws TechnicalConnectorException
TechnicalConnectorException@Deprecated byte[] unseal(byte[] message) throws UnsealConnectorException, TechnicalConnectorException
unseal(SigningPolicySelector, byte[])
@Deprecated byte[] unsealForUnknown(SecretKey key, byte[] protectedMessage) throws TechnicalConnectorException
unseal(SigningPolicySelector, KeyResult, byte[])
TechnicalConnectorExceptionUnsealedData unseal(Crypto.SigningPolicySelector type, byte[] protectedMessage) throws TechnicalConnectorException
TechnicalConnectorExceptionUnsealedData unseal(Crypto.SigningPolicySelector type, KeyResult symmKey, byte[] protectedMessage) throws TechnicalConnectorException
TechnicalConnectorException@Deprecated Key generateSecretKey() throws TechnicalConnectorException
ConnectorCryptoUtils.generatedKey();
TechnicalConnectorException@Deprecated Key getSymmKey()
ConnectorCryptoUtils.generatedKey();
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||