public class KgssMessageBuilderImpl extends Object implements KgssMessageBuilder, ConfigurationModuleBootstrap.ModuleBootstrapHook
KgssMessageBuilder
Constructor and Description |
---|
KgssMessageBuilderImpl() |
KgssMessageBuilderImpl(byte[] etkKgss,
Credential encryptionCredential,
Map<String,PrivateKey> decryptionKeys)
Instantiates a new kGSS util.
|
Modifier and Type | Method and Description |
---|---|
void |
bootstrap() |
GetKeyRequest |
sealGetKeyRequest(GetKeyRequestContent requestContent)
Seal get key request.
|
GetNewKeyRequest |
sealGetNewKeyRequest(GetNewKeyRequestContent requestContent)
Seal get new key request.
|
GetKeyResponseContent |
unsealGetKeyResponse(GetKeyResponse response)
Unseal get key response.
|
GetNewKeyResponseContent |
unsealGetNewKeyResponse(GetNewKeyResponse response)
Unseal get new key response.
|
public KgssMessageBuilderImpl()
public KgssMessageBuilderImpl(byte[] etkKgss, Credential encryptionCredential, Map<String,PrivateKey> decryptionKeys) throws TechnicalConnectorException
etkKgss
- The ETK of KGSSencryptionCredential
- The credential to use for sealing the message contents, the certificate is used to seal the request, the
private key is embedded in the request.decryptionKeys
- The decrypion keys available for decrypting the received message from KGSSTechnicalConnectorException
- When a technical exception occurspublic GetNewKeyRequest sealGetNewKeyRequest(GetNewKeyRequestContent requestContent) throws TechnicalConnectorException
KgssMessageBuilder
sealGetNewKeyRequest
in interface KgssMessageBuilder
requestContent
- the request contentTechnicalConnectorException
- When a technical exception occurspublic GetNewKeyResponseContent unsealGetNewKeyResponse(GetNewKeyResponse response) throws TechnicalConnectorException
KgssMessageBuilder
unsealGetNewKeyResponse
in interface KgssMessageBuilder
response
- the responseTechnicalConnectorException
- When a technical exception occurspublic GetKeyRequest sealGetKeyRequest(GetKeyRequestContent requestContent) throws TechnicalConnectorException
KgssMessageBuilder
sealGetKeyRequest
in interface KgssMessageBuilder
requestContent
- the request contentTechnicalConnectorException
- When a technical exception occurspublic GetKeyResponseContent unsealGetKeyResponse(GetKeyResponse response) throws TechnicalConnectorException
KgssMessageBuilder
unsealGetKeyResponse
in interface KgssMessageBuilder
response
- the responseTechnicalConnectorException
- When a technical exception occurspublic void bootstrap()
bootstrap
in interface ConfigurationModuleBootstrap.ModuleBootstrapHook
Connector Packaging TECHNICAL 4.0.2 API
Copyright © {inceptionYear}-2021 eHealth. All Rights Reserved.