public class ComputedIDDataConnector extends BaseDataConnector
| Modifier and Type | Field and Description |
|---|---|
private String |
generatedAttribute
ID of the attribute generated by this data connector.
|
private org.slf4j.Logger |
log
Class logger.
|
private byte[] |
salt
Salt used when computing the ID.
|
private String |
sourceAttribute
ID of the attribute whose first value is used when generating the computed ID.
|
| Constructor and Description |
|---|
ComputedIDDataConnector(String generatedAttributeId,
String sourceAttributeId,
byte[] idSalt)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getGeneratedAttributeId()
Gets the ID of the attribute generated by this connector.
|
byte[] |
getSalt()
Gets the salt used when computing the ID.
|
String |
getSourceAttributeId()
Gets the ID of the attribute whose first value is used when generating the computed ID.
|
Map<String,BaseAttribute> |
resolve(ShibbolethResolutionContext resolutionContext)
Performs the attribute resolution for this plugin.
|
void |
validate()
Validate the internal state of this plug-in.
|
getFailoverDependencyId, setFailoverDependencyIdsgetDependencyIds, getId, getValuesFromAllDependencies, getValuesFromAttributeDependency, getValuesFromConnectorDependency, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDependencyIds, getIdprivate final org.slf4j.Logger log
private String generatedAttribute
private String sourceAttribute
private byte[] salt
public ComputedIDDataConnector(String generatedAttributeId, String sourceAttributeId, byte[] idSalt)
generatedAttributeId - ID of the attribute generated by this data connectorsourceAttributeId - ID of the attribute whose first value is used when generating the computed IDidSalt - salt used when computing the IDpublic byte[] getSalt()
public String getSourceAttributeId()
public String getGeneratedAttributeId()
public Map<String,BaseAttribute> resolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
resolutionContext - the context for the resolutionAttributeResolutionException - the problem that occurred during the resolutionpublic void validate()
throws AttributeResolutionException
AttributeResolutionException - if the plug-in has an invalid internal stateCopyright © 1999-2015. All Rights Reserved.