Interface AuthnRequestGeneratorContext.AttributeConsumingServiceIndexResolver

All Superinterfaces:
Function<List<org.opensaml.saml.saml2.metadata.AttributeConsumingService>,Integer>
Enclosing interface:
AuthnRequestGeneratorContext

public static interface AuthnRequestGeneratorContext.AttributeConsumingServiceIndexResolver extends Function<List<org.opensaml.saml.saml2.metadata.AttributeConsumingService>,Integer>
If the SP metadata contains one or more AttributeConsumingService elements, the generator needs to know whether to include the AttributeConsumingServiceIndex attribute, and if so, which index to use. The generator gets this resolver by invoking AuthnRequestGeneratorContext.getAttributeConsumingServiceIndexResolver().

If this function returns null, no AttributeConsumingServiceIndex attribute will be included.