public final class IdentityEncryptionService extends Object
This class is a service to encrypt / decrypt a IdentityDto.
Designed as a singleton
| Modifier and Type | Method and 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
|
public static IdentityEncryptionService getInstance()
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.
identityDto - the identity from which the IdentityDto is encrypted. Must not be nullclientApplication - the client application for which the IdentityDto is encrypted. Must not be nullIdentityDtopublic 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.
identityDto - the identity from which the IdentityDto is decrypted. Must not be nullclientApplication - the client application for which the IdentityDto is decrypted. Must not be nullIdentityDtoCopyright © 2021 City of Paris. All rights reserved.