Class ProxySAML2NameIDGenerator
- java.lang.Object
-
- net.shibboleth.idp.saml.nameid.impl.ProxySAML2NameIDGenerator
-
- All Implemented Interfaces:
NameIdentifierGenerator<NameID>,SAML2NameIDGenerator
public class ProxySAML2NameIDGenerator extends Object implements SAML2NameIDGenerator
A compound implementation of theSAML2NameIDGeneratorinterface that wraps a sequence of candidate generators along with a default to try if no format-specific options are available.
-
-
Field Summary
Fields Modifier and Type Field Description private ReloadableService<NameIdentifierGenerationService>generatorServiceService used to get the generator to proxy.
-
Constructor Summary
Constructors Constructor Description ProxySAML2NameIDGenerator(ReloadableService<NameIdentifierGenerationService> service)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NameIDgenerate(ProfileRequestContext profileRequestContext, String format)
-
-
-
Field Detail
-
generatorService
@Nonnull private final ReloadableService<NameIdentifierGenerationService> generatorService
Service used to get the generator to proxy.
-
-
Constructor Detail
-
ProxySAML2NameIDGenerator
public ProxySAML2NameIDGenerator(@Nonnull ReloadableService<NameIdentifierGenerationService> service)Constructor.- Parameters:
service- the service providing the generator to proxy
-
-
Method Detail
-
generate
@Nullable public NameID generate(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull @NotEmpty String format) throws SAMLException
- Specified by:
generatein interfaceNameIdentifierGenerator<NameID>- Specified by:
generatein interfaceSAML2NameIDGenerator- Throws:
SAMLException
-
-