public final class SessionUtil extends Object
Modifier and Type | Method and Description |
---|---|
static SessionItem |
checkAndRetrieveSession() |
static boolean |
containsCaseInsensitive(String strToCompare,
List<String> list) |
static IdentifierType |
createIdentifierType(String identifier,
String type)
Creates the identifier type.
|
static Credential |
getCredentail(CryptoType type,
Credential defaultCredential) |
static Crypto |
getCrypto(CryptoType type,
Crypto defaultCrypto) |
static Credential |
getEncryptionCredential()
checks the session and the presence of the encryption credential and returns it.
|
static Crypto |
getEncryptionCrypto()
validates if the session and the encryption crypto is present, and returns the encryption Crypto.
|
static String |
getFirstname() |
static String |
getFullName()
Get the fullName based on the properties.
|
static Credential |
getHolderOfKeyCredential()
checks the session and the presence of the 'holder of key' credential and returns it.
|
static Crypto |
getHolderOfKeyCrypto()
validates if the session and the 'holder of key' crypto is present, and returns the 'holder of key' Crypto.
|
static String |
getLastname() |
static Map<String,List<String>> |
getMatchingAttributes(String attributeNamePattern) |
static String |
getNihii()
retrieves the NIHII of the user using the application.
|
static String |
getNihii11()
retrieves the NIHII of the user using the application.
|
static String |
getNiss()
retrieves the NIHII of the user using the application.
|
public static Crypto getCrypto(CryptoType type, Crypto defaultCrypto) throws TechnicalConnectorException
TechnicalConnectorException
public static Credential getCredentail(CryptoType type, Credential defaultCredential) throws TechnicalConnectorException
TechnicalConnectorException
public static Crypto getEncryptionCrypto() throws TechnicalConnectorException
Crypto
the encryption cryptoTechnicalConnectorException
public static Crypto getHolderOfKeyCrypto() throws TechnicalConnectorException
Crypto
the 'holder of key' cryptoTechnicalConnectorException
public static Credential getHolderOfKeyCredential() throws TechnicalConnectorException
Credential
the 'holder of key' credentialTechnicalConnectorException
public static Credential getEncryptionCredential() throws TechnicalConnectorException
Credential
the encryption credentialTechnicalConnectorException
public static SessionItem checkAndRetrieveSession() throws TechnicalConnectorException
TechnicalConnectorException
public static String getNihii11() throws TechnicalConnectorException
TechnicalConnectorException
- the technical connector exceptionpublic static String getNihii() throws TechnicalConnectorException
TechnicalConnectorException
- the technical connector exceptionpublic static String getNiss() throws TechnicalConnectorException
TechnicalConnectorException
public static IdentifierType createIdentifierType(String identifier, String type)
public static String getFullName()
public static String getFirstname()
public static String getLastname()
public static boolean containsCaseInsensitive(String strToCompare, List<String> list)
public static Map<String,List<String>> getMatchingAttributes(String attributeNamePattern) throws TechnicalConnectorException
TechnicalConnectorException
Connector Packaging TECHNICAL 4.0.2 API
Copyright © {inceptionYear}-2021 eHealth. All Rights Reserved.