public class KgssServiceImpl extends Object implements KgssService, ConfigurationModuleBootstrap.ModuleBootstrapHook
KgssService
Modifier and Type | Field and Description |
---|---|
static String |
EHEALTH_SUCCESS_CODE_100
The eHealth success codes.
|
static String |
EHEALTH_SUCCESS_CODE_200
The eHealth success codes.
|
Constructor and Description |
---|
KgssServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
bootstrap() |
static boolean |
checkReplyStatus(String responseCode)
Check reply status of the web service call, return true when OK.
|
KeyResult |
getKey(GetKeyRequestContent request,
byte[] kgssETK,
SessionItem session)
Gets the key.
|
GetKeyResponseContent |
getKey(GetKeyRequestContent request,
Credential encryption,
Credential service,
Element samlAssertion,
Map<String,PrivateKey> decryptionKeys,
byte[] etkKGSS)
Gets the key.
|
KeyResult |
getNewKey(GetNewKeyRequestContent request,
byte[] kgssETK)
Asks KGSS to generate and store a new key.
|
GetNewKeyResponseContent |
getNewKey(GetNewKeyRequestContent request,
Credential encryption,
Map<String,PrivateKey> decryptionKeys,
byte[] etkKGSS)
Gets the new key.
|
public static final String EHEALTH_SUCCESS_CODE_100
public static final String EHEALTH_SUCCESS_CODE_200
public KeyResult getNewKey(GetNewKeyRequestContent request, byte[] kgssETK) throws TechnicalConnectorException
KgssService
getNewKey
in interface KgssService
request
- the requestkgssETK
- the kgss etkTechnicalConnectorException
- the technical connector exceptionpublic KeyResult getKey(GetKeyRequestContent request, byte[] kgssETK, SessionItem session) throws TechnicalConnectorException
KgssService
getKey
in interface KgssService
request
- the requestkgssETK
- the kgss etksession
- the sessionTechnicalConnectorException
- the technical connector exceptionpublic GetNewKeyResponseContent getNewKey(GetNewKeyRequestContent request, Credential encryption, Map<String,PrivateKey> decryptionKeys, byte[] etkKGSS) throws TechnicalConnectorException
getNewKey
in interface KgssService
request
- the requestencryption
- the encryptiondecryptionKeys
- the decryption keysetkKGSS
- the etk kgssTechnicalConnectorException
- the technical connector exception When a technical exception occurspublic GetKeyResponseContent getKey(GetKeyRequestContent request, Credential encryption, Credential service, Element samlAssertion, Map<String,PrivateKey> decryptionKeys, byte[] etkKGSS) throws TechnicalConnectorException
getKey
in interface KgssService
request
- the requestencryption
- the encryptionservice
- the servicedecryptionKeys
- the decryption keysetkKGSS
- the etk kgsssamlAssertion
- the saml assertionTechnicalConnectorException
- the technical connector exception When a technical exception occurspublic static boolean checkReplyStatus(String responseCode) throws TechnicalConnectorException
responseCode
- the response codeTechnicalConnectorException
- the technical connector exceptionpublic void bootstrap()
bootstrap
in interface ConfigurationModuleBootstrap.ModuleBootstrapHook
Connector Packaging TRUSSMAKER 4.1.2 API
Copyright © {inceptionYear}-2022 eHealth. All Rights Reserved.