|
||||||||||
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.TransientIdAttributeDefinition
public class TransientIdAttributeDefinition
An attribute definition that generates random identifiers useful for transient subject IDs.
Information about the created IDs are stored within a provided StorageService
in the form of
TransientIdEntry
s. Each entry is mapped under two keys; the generated ID and a key derived from the tuple
(outbound message issuer, inbound message issuer, principal name).
Constructor Summary | |
---|---|
TransientIdAttributeDefinition(org.opensaml.util.storage.StorageService<String,TransientIdEntry> store)
Constructor. |
Method Summary | |
---|---|
protected BaseAttribute |
doResolve(ShibbolethResolutionContext resolutionContext)
Creates and populates the values for the resolved attribute. |
long |
getIdLifetime()
Gets the time, in milliseconds, ids are valid. |
int |
getIdSize()
Gets the size, in bytes, of the id. |
void |
setIdSize(int size)
Sets the size, in bytes, of the id. |
void |
setTokenLiftetime(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 |
Constructor Detail |
---|
public TransientIdAttributeDefinition(org.opensaml.util.storage.StorageService<String,TransientIdEntry> store) throws NoSuchAlgorithmException
store
- store used to map tokens to principals
NoSuchAlgorithmException
- thrown if the SHA1PRNG, used as the default random number generation algorithm,
is not supportedMethod Detail |
---|
protected BaseAttribute 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 int getIdSize()
public void setIdSize(int size)
size
- size, in bytes, of the idpublic long getIdLifetime()
public void setTokenLiftetime(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 |