Class IdentityEncryptionService


  • public final class IdentityEncryptionService
    extends Object

    This class is a service to encrypt / decrypt a IdentityDto.

    Designed as a singleton

    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto decrypt​(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto identityDto, fr.paris.lutece.plugins.identitystore.v2.business.IClientApplication clientApplication)
      Decrypts an IdentityDto from the specified IdentityDto.
      fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto encrypt​(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto identityDto, fr.paris.lutece.plugins.identitystore.v2.business.IClientApplication clientApplication)
      Encrypts an IdentityDto from the specified IdentityDto.
      static IdentityEncryptionService getInstance()
      Gives the instance
    • Method Detail

      • encrypt

        public fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto encrypt​(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto identityDto,
                                                                                       fr.paris.lutece.plugins.identitystore.v2.business.IClientApplication clientApplication)

        Encrypts an IdentityDto from the specified IdentityDto.

        The provided IdentityDto is not modified.

        Parameters:
        identityDto - the identity from which the IdentityDto is encrypted. Must not be null
        clientApplication - the client application for which the IdentityDto is encrypted. Must not be null
        Returns:
        the encrypted IdentityDto
      • decrypt

        public fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto decrypt​(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto identityDto,
                                                                                       fr.paris.lutece.plugins.identitystore.v2.business.IClientApplication clientApplication)

        Decrypts an IdentityDto from the specified IdentityDto.

        The provided IdentityDto is not modified.

        Parameters:
        identityDto - the identity from which the IdentityDto is decrypted. Must not be null
        clientApplication - the client application for which the IdentityDto is decrypted. Must not be null
        Returns:
        the decrypted IdentityDto