|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ehealth.technicalconnector.service.kgss.builders.impl.KgssMessageBuilderImpl
public class KgssMessageBuilderImpl
Implementation of KgssMessageBuilder
Constructor Summary | |
---|---|
KgssMessageBuilderImpl()
|
|
KgssMessageBuilderImpl(byte[] etkKgss,
Credential encryptionCredential,
Map<String,PrivateKey> decryptionKeys)
Instantiates a new kGSS util. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 KGSS
TechnicalConnectorException
- When a technical exception occursMethod Detail |
---|
public GetNewKeyRequest sealGetNewKeyRequest(GetNewKeyRequestContent requestContent) throws TechnicalConnectorException
KgssMessageBuilder
sealGetNewKeyRequest
in interface KgssMessageBuilder
requestContent
- the request content
TechnicalConnectorException
- When a technical exception occurspublic GetNewKeyResponseContent unsealGetNewKeyResponse(GetNewKeyResponse response) throws TechnicalConnectorException
KgssMessageBuilder
unsealGetNewKeyResponse
in interface KgssMessageBuilder
response
- the response
TechnicalConnectorException
- When a technical exception occurspublic GetKeyRequest sealGetKeyRequest(GetKeyRequestContent requestContent) throws TechnicalConnectorException
KgssMessageBuilder
sealGetKeyRequest
in interface KgssMessageBuilder
requestContent
- the request content
TechnicalConnectorException
- When a technical exception occurspublic GetKeyResponseContent unsealGetKeyResponse(GetKeyResponse response) throws TechnicalConnectorException
KgssMessageBuilder
unsealGetKeyResponse
in interface KgssMessageBuilder
response
- the response
TechnicalConnectorException
- When a technical exception occurspublic void bootstrap()
bootstrap
in interface ConfigurationModuleBootstrap.ModuleBootstrapHook
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |