public class HFCAIdentity extends Object
Modifier and Type | Method and Description |
---|---|
int |
create(User registrar)
create an identity
|
int |
delete(User registrar)
delete an identity
|
String |
getAffiliation()
The affiliation of the identity
|
Collection<Attribute> |
getAttributes()
The attributes of the identity
|
String |
getEnrollmentId()
The name of the identity
|
Integer |
getMaxEnrollments()
The max enrollment value of the identity
|
String |
getSecret()
The secret of the identity
|
String |
getType()
The type of the identity
|
boolean |
isDeleted()
Returns true if the identity has been deleted
|
int |
read(User registrar)
read retrieves a specific identity
|
void |
setAffiliation(HFCAAffiliation affiliation)
Set affiliation of the identity
|
void |
setAffiliation(String affiliation)
Set affiliation of the identity
|
void |
setAttributes(Collection<Attribute> attributes) |
void |
setMaxEnrollments(Integer maxEnrollments) |
void |
setSecret(String secret) |
void |
setType(String type) |
int |
update(User registrar)
update an identity
|
public String getEnrollmentId()
public String getType()
public void setType(String type)
public String getSecret()
public void setSecret(String secret)
public Integer getMaxEnrollments()
public void setMaxEnrollments(Integer maxEnrollments)
public String getAffiliation()
public void setAffiliation(String affiliation)
affiliation
- Affiliation namepublic void setAffiliation(HFCAAffiliation affiliation)
affiliation
- Affiliation namepublic Collection<Attribute> getAttributes()
public void setAttributes(Collection<Attribute> attributes)
public boolean isDeleted()
public int read(User registrar) throws IdentityException, InvalidArgumentException
registrar
- The identity of the registrar (i.e. who is performing the registration).IdentityException
- if retrieving an identity fails.InvalidArgumentException
- Invalid (null) argument specifiedpublic int create(User registrar) throws IdentityException, InvalidArgumentException
registrar
- The identity of the registrar (i.e. who is performing the registration).IdentityException
- if creating an identity fails.InvalidArgumentException
- Invalid (null) argument specifiedpublic int update(User registrar) throws IdentityException, InvalidArgumentException
registrar
- The identity of the registrar (i.e. who is performing the registration).IdentityException
- if adding an identity fails.InvalidArgumentException
- Invalid (null) argument specifiedpublic int delete(User registrar) throws IdentityException, InvalidArgumentException
registrar
- The identity of the registrar (i.e. who is performing the registration).IdentityException
- if adding an identity fails.InvalidArgumentException
- Invalid (null) argument specifiedCopyright © 2022. All rights reserved.