public class IdentityRepository extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CERTIFICATE_COLLECTION |
Constructor and Description |
---|
IdentityRepository(MongoDbAccess mongoDbAccess) |
Modifier and Type | Method and Description |
---|---|
void |
createIdentity(IdentityModel identityModel)
create a certificate with contextId and many information
|
Optional<IdentityModel> |
findIdentity(String subjectDN,
BigInteger serialNumber)
return certificate according to subjectDN and serilanumber
|
void |
linkContextToIdentity(String subjectDN,
String contextId,
BigInteger serialNumber) |
public static final String CERTIFICATE_COLLECTION
public IdentityRepository(MongoDbAccess mongoDbAccess)
public void createIdentity(IdentityModel identityModel) throws InvalidParseOperationException
identityModel
- InvalidParseOperationException
public Optional<IdentityModel> findIdentity(String subjectDN, BigInteger serialNumber) throws InvalidParseOperationException
subjectDN
- serialNumber
- InvalidParseOperationException
public void linkContextToIdentity(String subjectDN, String contextId, BigInteger serialNumber)
subjectDN
- contextId
- serialNumber
- Copyright © 2018 Vitam. All rights reserved.