|
||||||||||
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<BaseAttribute>
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.BaseAttributeDefinition
edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.CryptoTransientIdAttributeDefinition
public class CryptoTransientIdAttributeDefinition
An attribute definition that generates integrity protected, encrypted identifiers useful for stateless transient subject IDs.
Field Summary | |
---|---|
private DataSealer |
dataSealer
Object used to protect and encrypt the data. |
private long |
idLifetime
Length, in milliseconds, tokens are valid. |
private static org.slf4j.Logger |
log
Class logger. |
Constructor Summary | |
---|---|
CryptoTransientIdAttributeDefinition(DataSealer sealer)
Constructor. |
Method Summary | |
---|---|
protected BaseAttribute<String> |
doResolve(ShibbolethResolutionContext resolutionContext)
Creates and populates the values for the resolved attribute. |
long |
getIdLifetime()
Gets the time, in milliseconds, ids are valid. |
void |
setIdLifetime(long lifetime)
Sets the time, in milliseconds, ids are valid. |
void |
validate()
Validate the internal state of this plug-in. |
Methods inherited from class edu.internet2.middleware.shibboleth.common.attribute.resolver.provider.attributeDefinition.BaseAttributeDefinition |
---|
getAttributeEncoders, getDisplayDescriptions, getDisplayNames, getSourceAttributeID, getValuesFromAllDependencies, isDependencyOnly, resolve, setDependencyOnly, setSourceAttributeID |
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 |
---|
private static org.slf4j.Logger log
private DataSealer dataSealer
private long idLifetime
Constructor Detail |
---|
public CryptoTransientIdAttributeDefinition(DataSealer sealer)
sealer
- object used to protect and encrypt the dataMethod Detail |
---|
protected BaseAttribute<String> doResolve(ShibbolethResolutionContext resolutionContext) throws AttributeResolutionException
doResolve
in class BaseAttributeDefinition
resolutionContext
- current attribute resolution context
AttributeResolutionException
- thrown if there is a problem resolving and creating the attributepublic long getIdLifetime()
public void setIdLifetime(long lifetime)
lifetime
- time, in milliseconds, ids are validpublic 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 |