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 - InvalidParseOperationExceptionpublic Optional<IdentityModel> findIdentity(String subjectDN, BigInteger serialNumber) throws InvalidParseOperationException
subjectDN - serialNumber - InvalidParseOperationExceptionpublic void linkContextToIdentity(String subjectDN, String contextId, BigInteger serialNumber)
subjectDN - contextId - serialNumber - Copyright © 2018 Vitam. All rights reserved.