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.web.rs.dto.IdentityDto |
decrypt(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto identityDto,
fr.paris.lutece.plugins.identitystore.business.IClientApplication clientApplication)
Decrypts an
IdentityDto from the specified IdentityDto . |
fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto |
encrypt(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto identityDto,
fr.paris.lutece.plugins.identitystore.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.web.rs.dto.IdentityDto encrypt(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto identityDto, fr.paris.lutece.plugins.identitystore.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 null
clientApplication
- the client application for which the IdentityDto
is encrypted. Must not be null
IdentityDto
public fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto decrypt(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto identityDto, fr.paris.lutece.plugins.identitystore.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 null
clientApplication
- the client application for which the IdentityDto
is decrypted. Must not be null
IdentityDto
Copyright © 2018 City of Paris. All rights reserved.