Class IdentityEncryptionService
- java.lang.Object
-
- fr.paris.lutece.plugins.identitystore.service.encryption.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.IdentityDtodecrypt(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto identityDto, fr.paris.lutece.plugins.identitystore.v2.business.IClientApplication clientApplication)Decrypts anIdentityDtofrom the specifiedIdentityDto.fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDtoencrypt(fr.paris.lutece.plugins.identitystore.v2.web.rs.dto.IdentityDto identityDto, fr.paris.lutece.plugins.identitystore.v2.business.IClientApplication clientApplication)Encrypts anIdentityDtofrom the specifiedIdentityDto.static IdentityEncryptionServicegetInstance()Gives the instance
-
-
-
Method Detail
-
getInstance
public static IdentityEncryptionService getInstance()
Gives the instance- Returns:
- the instance
-
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
IdentityDtofrom the specifiedIdentityDto.The provided
IdentityDtois not modified.- Parameters:
identityDto- the identity from which theIdentityDtois encrypted. Must not benullclientApplication- the client application for which theIdentityDtois encrypted. Must not benull- 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
IdentityDtofrom the specifiedIdentityDto.The provided
IdentityDtois not modified.- Parameters:
identityDto- the identity from which theIdentityDtois decrypted. Must not benullclientApplication- the client application for which theIdentityDtois decrypted. Must not benull- Returns:
- the decrypted
IdentityDto
-
-