edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector
Class ComputedIDDataConnector

java.lang.Object
  extended by edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.AbstractResolutionPlugIn<Map<String,BaseAttribute>>
      extended by edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.BaseDataConnector
          extended by edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.dataConnector.ComputedIDDataConnector
All Implemented Interfaces:
DataConnector, ResolutionPlugIn<Map<String,BaseAttribute>>

Deprecated. use StoredIDDataConnector.

public class ComputedIDDataConnector
extends BaseDataConnector

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.


Field Summary
private  String generatedAttribute
          Deprecated. ID of the attribute generated by this data connector.
private  org.slf4j.Logger log
          Deprecated. Class logger.
private  byte[] salt
          Deprecated. Salt used when computing the ID.
private  String sourceAttribute
          Deprecated. ID of the attribute whose first value is used when generating the computed ID.
 
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
 

Field Detail

log

private final org.slf4j.Logger log
Deprecated. 
Class logger.


generatedAttribute

private String generatedAttribute
Deprecated. 
ID of the attribute generated by this data connector.


sourceAttribute

private String sourceAttribute
Deprecated. 
ID of the attribute whose first value is used when generating the computed ID.


salt

private byte[] salt
Deprecated. 
Salt used when computing the ID.

Constructor Detail

ComputedIDDataConnector

public ComputedIDDataConnector(String generatedAttributeId,
                               String sourceAttributeId,
                               byte[] idSalt)
Deprecated. 
Constructor.

Parameters:
generatedAttributeId - ID of the attribute generated by this data connector
sourceAttributeId - ID of the attribute whose first value is used when generating the computed ID
idSalt - salt used when computing the ID
Method Detail

getSalt

public byte[] getSalt()
Deprecated. 
Gets the salt used when computing the ID.

Returns:
salt used when computing the ID

getSourceAttributeId

public String getSourceAttributeId()
Deprecated. 
Gets the ID of the attribute whose first value is used when generating the computed ID.

Returns:
ID of the attribute whose first value is used when generating the computed ID

getGeneratedAttributeId

public String getGeneratedAttributeId()
Deprecated. 
Gets the ID of the attribute generated by this connector.

Returns:
ID of the attribute generated by this connector

resolve

public Map<String,BaseAttribute> resolve(ShibbolethResolutionContext resolutionContext)
                                  throws AttributeResolutionException
Deprecated. 
Performs the attribute resolution for this plugin.

Parameters:
resolutionContext - the context for the resolution
Returns:
the attributes made available by the resolution, never null
Throws:
AttributeResolutionException - the problem that occurred during the resolution

validate

public void validate()
              throws AttributeResolutionException
Deprecated. 
Validate the internal state of this plug-in. This process may not rely on information from any dependency.

Throws:
AttributeResolutionException - if the plug-in has an invalid internal state


Copyright © 1999-2012. All Rights Reserved.