public class ComputedIDDataConnector extends BaseDataConnector
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, setFailoverDependencyIds
getDependencyIds, getId, getValuesFromAllDependencies, getValuesFromAttributeDependency, getValuesFromConnectorDependency, setId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDependencyIds, getId
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–2014. All rights reserved.