Package net.shibboleth.idp.authn.testing
Class MockAuthenticationProfileConfiguration
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
-
- net.shibboleth.idp.profile.config.AbstractProfileConfiguration
-
- net.shibboleth.idp.authn.testing.MockAuthenticationProfileConfiguration
-
- All Implemented Interfaces:
net.shibboleth.idp.authn.config.AuthenticationProfileConfiguration,ProfileConfiguration,Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent
public class MockAuthenticationProfileConfiguration extends AbstractProfileConfiguration implements net.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
Mock implementation ofAuthenticationProfileConfiguration.
-
-
Field Summary
Fields Modifier and Type Field Description private Set<String>authenticationFlowsFilters the usable authentication flows.private List<Principal>defaultAuthenticationMethodsSelects, and limits, the authentication methods to use for requests.private Predicate<ProfileRequestContext>forceAuthnPredicateForceAuthn predicate.private List<String>nameIDFormatPrecedencePrecedence of name identifier formats to use for requests.private List<String>postAuthenticationFlowsEnables post-authentication interceptor flows.private IntegerproxyCountProxy count.-
Fields inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
DEFAULT_DISALLOWED_FEATURES
-
-
Constructor Summary
Constructors Constructor Description MockAuthenticationProfileConfiguration(String id, List<Principal> methods)Constructor.MockAuthenticationProfileConfiguration(String id, List<Principal> methods, Collection<String> flows, List<String> formats)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>getAuthenticationFlows(ProfileRequestContext profileRequestContext)List<Principal>getDefaultAuthenticationMethods(ProfileRequestContext profileRequestContext)List<String>getNameIDFormatPrecedence(ProfileRequestContext profileRequestContext)List<String>getPostAuthenticationFlows(ProfileRequestContext profileRequestContext)IntegergetProxyCount(ProfileRequestContext profileRequestContext)booleanisForceAuthn(ProfileRequestContext profileRequestContext)voidsetAuthenticationFlows(Collection<String> flows)Set the authentication flows to use.voidsetDefaultAuthenticationMethods(List<Principal> methods)Set the default authentication methods to use, expressed as custom principals.voidsetNameIDFormatPrecedence(List<String> formats)Set the name identifier formats to use.voidsetPostAuthenticationFlows(Collection<String> flows)Set the ordered collection of post-authentication interceptor flows to enable.voidsetProxyCount(Integer count)Set proxy count.-
Methods inherited from class net.shibboleth.idp.profile.config.AbstractProfileConfiguration
equals, getDisallowedFeatures, getInboundInterceptorFlows, getOutboundInterceptorFlows, getSecurityConfiguration, hashCode, isFeatureDisallowed, setDisallowedFeatures, setDisallowedFeaturesLookupStrategy, setInboundFlowsLookupStrategy, setInboundInterceptorFlows, setInboundInterceptorFlowsLookupStrategy, setOutboundFlowsLookupStrategy, setOutboundInterceptorFlows, setOutboundInterceptorFlowsLookupStrategy, setSecurityConfiguration, setSecurityConfigurationLookupStrategy
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
doInitialize, getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
isLocal
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
Methods inherited from interface net.shibboleth.idp.profile.config.ProfileConfiguration
getInboundInterceptorFlows, getOutboundInterceptorFlows, getSecurityConfiguration
-
-
-
-
Field Detail
-
defaultAuthenticationMethods
@Nonnull @NonnullElements private List<Principal> defaultAuthenticationMethods
Selects, and limits, the authentication methods to use for requests.
-
authenticationFlows
@Nonnull @NonnullElements private Set<String> authenticationFlows
Filters the usable authentication flows.
-
postAuthenticationFlows
@Nonnull @NonnullElements private List<String> postAuthenticationFlows
Enables post-authentication interceptor flows.
-
nameIDFormatPrecedence
@Nonnull @NonnullElements private List<String> nameIDFormatPrecedence
Precedence of name identifier formats to use for requests.
-
forceAuthnPredicate
@Nonnull private Predicate<ProfileRequestContext> forceAuthnPredicate
ForceAuthn predicate.
-
proxyCount
@Nonnull private Integer proxyCount
Proxy count.
-
-
Constructor Detail
-
MockAuthenticationProfileConfiguration
public MockAuthenticationProfileConfiguration(@Nonnull @NotEmpty String id, @Nonnull @NonnullElements List<Principal> methods)
Constructor.- Parameters:
id- ID of this profilemethods- default authentication methods to use
-
MockAuthenticationProfileConfiguration
public MockAuthenticationProfileConfiguration(@Nonnull @NotEmpty String id, @Nonnull @NonnullElements List<Principal> methods, @Nonnull @NonnullElements Collection<String> flows, @Nonnull @NonnullElements List<String> formats)
Constructor.- Parameters:
id- ID of this profilemethods- default authentication methods to useflows- ...formats- name identifier formats to use
-
-
Method Detail
-
getDefaultAuthenticationMethods
@Nonnull @NonnullElements @NotLive @Unmodifiable public List<Principal> getDefaultAuthenticationMethods(@Nullable ProfileRequestContext profileRequestContext)
- Specified by:
getDefaultAuthenticationMethodsin interfacenet.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
-
setDefaultAuthenticationMethods
public void setDefaultAuthenticationMethods(@Nonnull @NonnullElements List<Principal> methods)
Set the default authentication methods to use, expressed as custom principals.- Parameters:
methods- default authentication methods to use
-
getNameIDFormatPrecedence
@Nonnull @NonnullElements @NotLive @Unmodifiable public List<String> getNameIDFormatPrecedence(@Nullable ProfileRequestContext profileRequestContext)
-
setNameIDFormatPrecedence
public void setNameIDFormatPrecedence(@Nonnull @NonnullElements List<String> formats)
Set the name identifier formats to use.- Parameters:
formats- name identifier formats to use
-
getAuthenticationFlows
@Nonnull @NonnullElements @NotLive @Unmodifiable public Set<String> getAuthenticationFlows(@Nullable ProfileRequestContext profileRequestContext)
- Specified by:
getAuthenticationFlowsin interfacenet.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
-
setAuthenticationFlows
public void setAuthenticationFlows(@Nonnull @NonnullElements Collection<String> flows)
Set the authentication flows to use.- Parameters:
flows- flow identifiers to use
-
getPostAuthenticationFlows
@Nonnull @NonnullElements @NotLive @Unmodifiable public List<String> getPostAuthenticationFlows(@Nullable ProfileRequestContext profileRequestContext)
- Specified by:
getPostAuthenticationFlowsin interfacenet.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
-
setPostAuthenticationFlows
public void setPostAuthenticationFlows(@Nonnull @NonnullElements Collection<String> flows)
Set the ordered collection of post-authentication interceptor flows to enable.- Parameters:
flows- flow identifiers to enable
-
isForceAuthn
public boolean isForceAuthn(ProfileRequestContext profileRequestContext)
- Specified by:
isForceAuthnin interfacenet.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
-
getProxyCount
@Nullable @NonNegative public Integer getProxyCount(@Nullable ProfileRequestContext profileRequestContext)
- Specified by:
getProxyCountin interfacenet.shibboleth.idp.authn.config.AuthenticationProfileConfiguration
-
setProxyCount
public void setProxyCount(@Nullable @NonNegative Integer count)
Set proxy count.- Parameters:
count- the count
-
-