|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.internet2.middleware.shibboleth.common.attribute.resolver.provider.AbstractResolutionPlugIn<Map<String,BaseAttribute>>
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.BaseDataConnector
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.ComputedIDDataConnector
StoredIDDataConnector
.
public class ComputedIDDataConnector
A data connector that generates a unique ID by computing the SHA-1 hash of a given attribute value, the entity ID of the inbound message issuer, and a provided salt.
Constructor Summary | |
---|---|
ComputedIDDataConnector(String generatedAttributeId,
String sourceAttributeId,
byte[] idSalt)
Deprecated. Constructor. |
Method Summary | |
---|---|
String |
getGeneratedAttributeId()
Deprecated. Gets the ID of the attribute generated by this connector. |
byte[] |
getSalt()
Deprecated. Gets the salt used when computing the ID. |
String |
getSourceAttributeId()
Deprecated. Gets the ID of the attribute whose first value is used when generating the computed ID. |
Map<String,BaseAttribute> |
resolve(ShibbolethResolutionContext resolutionContext)
Deprecated. Performs the attribute resolution for this plugin. |
void |
validate()
Deprecated. Validate the internal state of this plug-in. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.BaseDataConnector |
---|
getFailoverDependencyId, setFailoverDependencyIds |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.AbstractResolutionPlugIn |
---|
getDependencyIds, getId, getValuesFromAllDependencies, getValuesFromAttributeDependency, getValuesFromConnectorDependency, setId |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.ResolutionPlugIn |
---|
getDependencyIds, getId |
Constructor Detail |
---|
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 IDMethod Detail |
---|
public byte[] getSalt()
public String getSourceAttributeId()
public String getGeneratedAttributeId()
public Map<String,BaseAttribute> resolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
resolutionContext
- the context for the resolution
AttributeResolutionException
- the problem that occurred during the resolutionpublic void validate() throws AttributeResolutionException
AttributeResolutionException
- if the plug-in has an invalid internal state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |