Class KeyManager


  • @Component
    public class KeyManager
    extends Object
    The Class KeyManager is used to decipher the request and returning the decipher request to the filter to do further authentication.
    Author:
    Sanjay Murali, Manoj SP
    • Constructor Detail

      • KeyManager

        public KeyManager()
    • Method Detail

      • kernelDecryptAndDecode

        public String kernelDecryptAndDecode​(String thumbprint,
                                             byte[] encryptedSessionKey,
                                             byte[] encryptedData,
                                             String refId,
                                             Boolean isThumbprintEnabled)
                                      throws IdAuthenticationAppException
        Kernel decrypt and decode.
        Parameters:
        thumbprint - the thumbprint
        encryptedSessionKey - the encrypted session key
        encryptedData - the encrypted data
        refId - the ref id
        isThumbprintEnabled - the is thumbprint enabled
        Returns:
        the string
        Throws:
        IdAuthenticationAppException - the id authentication app exception
      • kernelDecrypt

        public String kernelDecrypt​(String thumbprint,
                                    byte[] encryptedSessionKey,
                                    byte[] encryptedData,
                                    String refId,
                                    String aad,
                                    String salt,
                                    Boolean isThumbprintEnabled)
                             throws IdAuthenticationAppException
        Kernel decrypt.
        Parameters:
        thumbprint - the thumbprint
        encryptedSessionKey - the encrypted session key
        encryptedData - the encrypted data
        refId - the ref id
        aad - the aad
        salt - the salt
        isThumbprintEnabled - the is thumbprint enabled
        Returns:
        the string
        Throws:
        IdAuthenticationAppException - the id authentication app exception