Class ProxySAML2NameIDGenerator
java.lang.Object
net.shibboleth.idp.saml.nameid.impl.ProxySAML2NameIDGenerator
- All Implemented Interfaces:
NameIdentifierGenerator<NameID>
,SAML2NameIDGenerator
A compound implementation of the
SAML2NameIDGenerator
interface that wraps a sequence of
candidate generators along with a default to try if no format-specific options are available.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReloadableService<NameIdentifierGenerationService>
Service used to get the generator to proxy. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptiongenerate
(ProfileRequestContext profileRequestContext, String format)
-
Field Details
-
generatorService
Service used to get the generator to proxy.
-
-
Constructor Details
-
ProxySAML2NameIDGenerator
public ProxySAML2NameIDGenerator(@Nonnull ReloadableService<NameIdentifierGenerationService> service) Constructor.- Parameters:
service
- the service providing the generator to proxy
-
-
Method Details
-
generate
@Nullable public NameID generate(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull @NotEmpty String format) throws SAMLException - Specified by:
generate
in interfaceNameIdentifierGenerator<NameID>
- Specified by:
generate
in interfaceSAML2NameIDGenerator
- Throws:
SAMLException
-