Package net.shibboleth.idp.authn.impl
Class RelyingPartyMapJAASLoginConfigStrategy
- java.lang.Object
-
- net.shibboleth.idp.profile.context.navigate.AbstractRelyingPartyLookupFunction<Collection<net.shibboleth.utilities.java.support.collection.Pair<String,Subject>>>
-
- net.shibboleth.idp.authn.impl.RelyingPartyMapJAASLoginConfigStrategy
-
- All Implemented Interfaces:
Function<org.opensaml.profile.context.ProfileRequestContext,Collection<net.shibboleth.utilities.java.support.collection.Pair<String,Subject>>>,org.opensaml.messaging.context.navigate.ContextDataLookupFunction<org.opensaml.profile.context.ProfileRequestContext,Collection<net.shibboleth.utilities.java.support.collection.Pair<String,Subject>>>
public class RelyingPartyMapJAASLoginConfigStrategy extends net.shibboleth.idp.profile.context.navigate.AbstractRelyingPartyLookupFunction<Collection<net.shibboleth.utilities.java.support.collection.Pair<String,Subject>>>
An implementation of theloginConfigStrategyforJAASCredentialValidatorwhich uses a supplied map to resolve the JAAS config to use.The map key is the relying party ID, the value is the JAAS config name.
-
-
Field Summary
Fields Modifier and Type Field Description private StringdefaultConfigNameThe default JAAS config name to use when no specific mapping configured.private org.slf4j.LoggerlogLogger.private Map<String,String>relyingPartyMapMap holding the relying party to JAAS config name mappings.
-
Constructor Summary
Constructors Constructor Description RelyingPartyMapJAASLoginConfigStrategy(Map<String,String> map)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<net.shibboleth.utilities.java.support.collection.Pair<String,Subject>>apply(org.opensaml.profile.context.ProfileRequestContext profileRequestContext)voidsetDefaultConfigName(String name)Set the default JAAS config name returned when no specific one is configured for a particular relying party.-
Methods inherited from class net.shibboleth.idp.profile.context.navigate.AbstractRelyingPartyLookupFunction
getRelyingPartyContextLookupStrategy, setRelyingPartyContextLookupStrategy
-
-
-
-
Field Detail
-
log
@Nonnull private org.slf4j.Logger log
Logger.
-
relyingPartyMap
@Nonnull private Map<String,String> relyingPartyMap
Map holding the relying party to JAAS config name mappings.
-
defaultConfigName
@Nonnull private String defaultConfigName
The default JAAS config name to use when no specific mapping configured.
-
-
Method Detail
-
setDefaultConfigName
public void setDefaultConfigName(@Nonnull @NotEmpty String name)Set the default JAAS config name returned when no specific one is configured for a particular relying party.The default value is: ShibUserPassAuth.
- Parameters:
name- the default JAAS config name
-
apply
@Nonnull public Collection<net.shibboleth.utilities.java.support.collection.Pair<String,Subject>> apply(@Nonnull org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
-
-