Class IdentityStoreService


  • public final class IdentityStoreService
    extends Object
    IdentityStoreService
    • Method Detail

      • getTrustedClientCode

        public static String getTrustedClientCode​(String strHeaderClientCode,
                                                  String strParamClientCode)
                                           throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Get the application code to use.
        Parameters:
        strHeaderClientCode - The application code in HTTP request header
        strParamClientCode - The application code provided by the client
        Returns:
        The application code to use
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
      • getTrustedClientCode

        public static String getTrustedClientCode​(String strHeaderClientCode,
                                                  String strParamClientCode,
                                                  String strHeaderAppCode)
                                           throws fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException
        Get the application code to use.
        If the strHeaderAppCode is provided, the correlation between the resulting trusted client code and this application code is verified.
        Parameters:
        strHeaderClientCode - The application code in HTTP request header
        strParamClientCode - The application code provided by the client
        strHeaderAppCode - The application code header provided by the API manager
        Returns:
        The application code to use
        Throws:
        fr.paris.lutece.plugins.identitystore.web.exception.IdentityStoreException - if the correlation between the resulting trusted client code and the application code was not verified
        See Also:
        verifyClientAndAppCodeCorrelation(java.lang.String, java.lang.String)
      • getSecureMode

        public static SecureMode getSecureMode()
        Get the secure Mode of the identitystore
        Returns:
        the secure mode