Class AddNameIDToSubjects.NameIDPolicyLookupFunction

  • All Implemented Interfaces:
    Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.saml.common.SAMLObject>
    Enclosing class:
    AddNameIDToSubjects

    public static class AddNameIDToSubjects.NameIDPolicyLookupFunction
    extends Object
    implements Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.saml.common.SAMLObject>
    Lookup function that returns the NameIDPolicy from an AuthnRequest message returned from a lookup function, by default the inbound message.
    • Field Detail

      • requestLookupStrategy

        @Nonnull
        private Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.saml.saml2.core.AuthnRequest> requestLookupStrategy
        Strategy used to locate the AuthnRequest to operate on.
    • Constructor Detail

      • NameIDPolicyLookupFunction

        public NameIDPolicyLookupFunction()
        Constructor.
    • Method Detail

      • setRequestLookupStrategy

        public void setRequestLookupStrategy​(@Nonnull
                                             Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.saml.saml2.core.AuthnRequest> strategy)
        Set the strategy used to locate the AuthnRequest to examine.
        Parameters:
        strategy - strategy used to locate the AuthnRequest
      • apply

        @Nullable
        public org.opensaml.saml.common.SAMLObject apply​(@Nullable
                                                         org.opensaml.profile.context.ProfileRequestContext profileRequestContext)
        Specified by:
        apply in interface Function<org.opensaml.profile.context.ProfileRequestContext,​org.opensaml.saml.common.SAMLObject>