Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## be.ehealth.technicalconnector.service.etee.impl
Class CryptoImpl

    java.lang.Object
      be.ehealth.technicalconnector.service.etee.impl.AbstractCrypto
          be.ehealth.technicalconnector.service.etee.impl.AbstractEndToEndCrypto
              be.ehealth.technicalconnector.service.etee.impl.CryptoImpl

All Implemented Interfaces:
  Crypto, ConfigurableImplementation

    public class CryptoImpl

extends AbstractEndToEndCrypto

Implementation for `Crypto`. Extends : `AbstractCrypto`

Nested Class Summary

Nested classes/interfaces inherited from interface be.ehealth.technicalconnector.service.etee.Crypto
`Crypto.SigningPolicySelector`

Field Summary
`static String` | `PROP_LIST_IGNORED_NOTIFICATION_ERRORS_ROOTKEY` Property of the notification error that can be ignored.

Fields inherited from class be.ehealth.technicalconnector.service.etee.impl.AbstractEndToEndCrypto
`PROP_DUMP_FIRST_CHARS, PROP_DUMP_MESSAGES`

Fields inherited from class be.ehealth.technicalconnector.service.etee.impl.AbstractCrypto
`DEFAULT_ALGO`

Fields inherited from interface be.ehealth.technicalconnector.service.etee.Crypto
`DATASEALER_CREDENTIAL, DATAUNSEALER_PKMAP, OCSP_OPTIONMAP, OCSP_POLICY, SIGNING_OPTIONMAP`

Constructor Summary
`CryptoImpl()` needed for ConfigurableFactoryHelper to instantiate this class.
`CryptoImpl(Credential encryption, Map<String,PrivateKey> decryptionKeys)` Deprecated. replaced with default constructor and the initialize method.

Method Summary
`void` | `initialize(Map<String,Object> parameterMap)` initializes the implementation with additional parameters.
`static UnsealedData` | `map(be.fgov.ehealth.etee.crypto.decrypt.UnsealedData data)`
`byte[]` | `seal(Crypto.SigningPolicySelector type, Set<EncryptionToken> paramEncryptionTokenSet, KeyResult symmKey, byte[] content)`
`UnsealedData` | `unseal(Crypto.SigningPolicySelector type, byte[] protectedMessage)`
`UnsealedData` | `unseal(Crypto.SigningPolicySelector type, KeyResult symmKey, byte[] protectedMessage)`

Methods inherited from class be.ehealth.technicalconnector.service.etee.impl.AbstractEndToEndCrypto
`seal, seal, seal, seal, seal, seal, seal, unseal, unsealForUnknown`

Methods inherited from class be.ehealth.technicalconnector.service.etee.impl.AbstractCrypto
`generateSecretKey, getSymmKey, unsealWithSymmKey`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### PROP_LIST_IGNORED_NOTIFICATION_ERRORS_ROOTKEY

    public static final String PROP_LIST_IGNORED_NOTIFICATION_ERRORS_ROOTKEY

  Property of the notification error that can be ignored. If the list is empty every warning will be ignored.

  - SIGNING_TIME_MISSING: No Signing Time. Message treated as new.
  - SIGNING_TIME_EXPIRED: Expired Signing Time could not be verified. If you have doubts about the reliability of this message, request for an Audit Trail.
  - OCSP_NOT_EMBEDDED: An embedded OCSP was expected in the message but not found. An online OCSP verification should have been executed.
  - CRL_TRUST_NOT_VERIFIED: A local CRL was used for revocationcheck but it could not be verified on reliability. If you have doubts about the reliability of this CRL, you should not trust it.

    See Also:
      Constant Field Values

Constructor Detail

### CryptoImpl

    public CryptoImpl()

  needed for ConfigurableFactoryHelper to instantiate this class.

### CryptoImpl

    @Deprecated
    public CryptoImpl(Credential encryption,
                                 Map<String,PrivateKey> decryptionKeys)
               throws TechnicalConnectorException

  Deprecated. replaced with default constructor and the initialize method.

  Instantiates a new crypto.

  Parameters:
    `encryption` - the encryption
    `decryptionKeys` - the decryption keys
  Throws:
    `TechnicalConnectorException` - the technical connector exception

Method Detail

### seal

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

  Throws:
    `TechnicalConnectorException`

### unseal

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

  Throws:
    `TechnicalConnectorException`

### unseal

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

  Throws:
    `TechnicalConnectorException`

### map

    public static UnsealedData map(be.fgov.ehealth.etee.crypto.decrypt.UnsealedData data)

### initialize

    public void initialize(Map<String,Object> parameterMap)
                    throws TechnicalConnectorException

  Description copied from interface: `ConfigurableImplementation`
  initializes the implementation with additional parameters.

  Parameters:
    `parameterMap` - Map with for each propertyString ,the input parameter as Object.
  Throws:
    `TechnicalConnectorException` - if the parameterMap is not correct.
  See Also:
    `ConfigurableImplementation.initialize(java.util.Map)`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Connector Packaging TECHNICAL 3.26.1 API
Copyright © {inceptionYear}-2024 eHealth. All Rights Reserved.