be.ehealth.technicalconnector.service.etee
Interface Crypto

All Superinterfaces:
ConfigurableImplementation
All Known Implementing Classes:
AbstractCrypto, AbstractEndToEndCrypto, CryptoImpl

public interface Crypto
extends ConfigurableImplementation

Interface for all the interanction with the ETEE cryptolib.

  • Extends: ConfigurableImplementation
  • Default implementation: CryptoImpl
  • Factory: 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
    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

    DATAUNSEALER_PKMAP

    static final String DATAUNSEALER_PKMAP
    Key used to pass the Map as init param in the ConfigurableFactoryHelper

    See Also:
    Constant Field Values

    DATASEALER_CREDENTIAL

    static final String DATASEALER_CREDENTIAL
    Key used to pass the Credential as init param in the ConfigurableFactoryHelper

    See Also:
    Constant Field Values

    OCSP_OPTIONMAP

    static final String OCSP_OPTIONMAP
    Optional Map<OCSPOption,Object>

    See Also:
    Constant Field Values

    SIGNING_OPTIONMAP

    static final String SIGNING_OPTIONMAP
    Optional Map<SigningOption,Object>

    See Also:
    Constant Field Values

    OCSP_POLICY

    static final String OCSP_POLICY
    Optional ocsp_policy to use OCSPPolicy

    Default OCSPPolicy.NONE

    See Also:
    Constant Field Values
    Method Detail

    seal

    @Deprecated
    byte[] seal(EncryptionToken paramEncryptionToken,
                           byte[] content)
                throws TechnicalConnectorException
    Deprecated. replaced by seal(SigningPolicySelector, EncryptionToken, byte[])

    Throws:
    TechnicalConnectorException

    seal

    @Deprecated
    byte[] seal(Set<EncryptionToken> paramEncryptionTokenSet,
                           byte[] content)
                throws TechnicalConnectorException
    Deprecated. replaced by seal(SigningPolicySelector, Set, byte[])

    Throws:
    TechnicalConnectorException

    seal

    @Deprecated
    byte[] seal(byte[] content,
                           SecretKey secretKey,
                           String keyId)
                throws TechnicalConnectorException
    Deprecated. replaced by seal(SigningPolicySelector, KeyResult, byte[])

    Throws:
    TechnicalConnectorException

    seal

    @Deprecated
    byte[] seal(Set<EncryptionToken> paramEncryptionTokenSet,
                           byte[] content,
                           SecretKey secretKey,
                           String keyId)
                throws TechnicalConnectorException
    Deprecated. replaced by seal(SigningPolicySelector, Set, KeyResult, byte[])

    Throws:
    TechnicalConnectorException

    seal

    byte[] seal(Crypto.SigningPolicySelector type,
                EncryptionToken enncryptionToken,
                byte[] content)
                throws TechnicalConnectorException
    Throws:
    TechnicalConnectorException

    seal

    byte[] seal(Crypto.SigningPolicySelector type,
                Set<EncryptionToken> paramEncryptionTokenSet,
                byte[] content)
                throws TechnicalConnectorException
    Throws:
    TechnicalConnectorException

    seal

    byte[] seal(Crypto.SigningPolicySelector type,
                KeyResult symmKey,
                byte[] content)
                throws TechnicalConnectorException
    Throws:
    TechnicalConnectorException

    seal

    byte[] seal(Crypto.SigningPolicySelector type,
                Set<EncryptionToken> paramEncryptionTokenSet,
                KeyResult symmKey,
                byte[] content)
                throws TechnicalConnectorException
    Throws:
    TechnicalConnectorException

    unseal

    @Deprecated
    byte[] unseal(byte[] message)
                  throws UnsealConnectorException,
                         TechnicalConnectorException
    Deprecated. replaced by unseal(SigningPolicySelector, byte[])

    Throws:
    UnsealConnectorException
    TechnicalConnectorException

    unsealForUnknown

    @Deprecated
    byte[] unsealForUnknown(SecretKey key,
                                       byte[] protectedMessage)
                            throws TechnicalConnectorException
    Deprecated. replaced by unseal(SigningPolicySelector, KeyResult, byte[])

    Throws:
    TechnicalConnectorException

    unseal

    UnsealedData unseal(Crypto.SigningPolicySelector type,
                        byte[] protectedMessage)
                        throws TechnicalConnectorException
    Throws:
    TechnicalConnectorException

    unseal

    UnsealedData unseal(Crypto.SigningPolicySelector type,
                        KeyResult symmKey,
                        byte[] protectedMessage)
                        throws TechnicalConnectorException
    Throws:
    TechnicalConnectorException

    generateSecretKey

    @Deprecated
    Key generateSecretKey()
                          throws TechnicalConnectorException
    Deprecated. replaced by ConnectorCryptoUtils.generatedKey();

    Throws:
    TechnicalConnectorException

    getSymmKey

    @Deprecated
    Key getSymmKey()
    Deprecated. replaced by ConnectorCryptoUtils.generatedKey();




    Connector Packaging TECHNICAL 3.14.2 API
    Copyright © {inceptionYear}-2018 eHealth. All Rights Reserved.