/** Constructor. */ public AbstractDecryptAction() { errorFatal = true; securityParamsLookupStrategy = Functions.compose(new ChildContextLookup<>(SecurityParametersContext.class), new InboundMessageContextLookup()); messageLookupStrategy = Functions.compose(new MessageLookup<>(Object.class), new InboundMessageContextLookup()); decryptionPredicate = Predicates.alwaysTrue(); }
final AuthnRequest authnRequest = new MessageLookup<>(AuthnRequest.class).apply( new InboundMessageContextLookup().apply(input)); if (authnRequest != null && authnRequest.isPassive()) { log.debug("Request was a SAML 2 AuthnRequest with IsPassive set, handling error with response");
/** Constructor. */ public RequesterIdFromIssuerFunction() { requestLookupStrategy = Functions.compose(new MessageLookup<>(RequestAbstractType.class), new InboundMessageContextLookup()); }
/** * Constructor. */ public PopulateDecryptionParameters() { // Create context by default. securityParametersContextLookupStrategy = Functions.compose( new ChildContextLookup<>(SecurityParametersContext.class, true), new InboundMessageContextLookup()); }
/** * Constructor. */ public PopulateSignatureValidationParameters() { // Create context by default. securityParametersContextLookupStrategy = Functions.compose( new ChildContextLookup<>(SecurityParametersContext.class, true), new InboundMessageContextLookup()); }
/** Constructor. */ public NameIDPolicyLookupFunction() { requestLookupStrategy = Functions.compose(new MessageLookup<>(AuthnRequest.class), new InboundMessageContextLookup()); }
/** * Constructor. */ public PopulateClientTLSValidationParameters() { // Create context by default. securityParametersContextLookupStrategy = Functions.compose( new ChildContextLookup<>(ClientTLSSecurityParametersContext.class, true), new InboundMessageContextLookup()); }
/** Constructor. */ public ProcessRequestedAuthnContext() { relyingPartyContextLookupStrategy = new ChildContextLookup<>(RelyingPartyContext.class); authnRequestLookupStrategy = Functions.compose(new MessageLookup<>(AuthnRequest.class), new InboundMessageContextLookup()); ignoredContexts = Collections.singleton(AuthnContext.UNSPECIFIED_AUTHN_CTX); }
/** Constructor. */ public InitializeAuthenticationContext() { forceAuthnPredicate = new ForceAuthnProfileConfigPredicate(); requestLookupStrategy = Functions.compose(new MessageLookup<>(AuthnRequest.class), new InboundMessageContextLookup()); }
/** Constructor. */ public InitializeRelyingPartyContextFromSAMLPeer() { relyingPartyContextCreationStrategy = new ChildContextLookup<>(RelyingPartyContext.class, true); peerEntityContextLookupStrategy = Functions.compose( new ChildContextLookup<>(SAMLPeerEntityContext.class), new InboundMessageContextLookup()); }
/** Constructor. */ public ResolveArtifacts() { requestLookupStrategy = Functions.compose(new MessageLookup<>(Request.class), new InboundMessageContextLookup()); responseLookupStrategy = Functions.compose(new MessageLookup<>(Response.class), new OutboundMessageContextLookup()); requesterLookupStrategy = Functions.compose(new SAMLMessageContextIssuerFunction(), new InboundMessageContextLookup()); }
/** Constructor. */ public ResolveArtifact() { requestLookupStrategy = Functions.compose(new MessageLookup<>(ArtifactResolve.class), new InboundMessageContextLookup()); responseLookupStrategy = Functions.compose(new MessageLookup<>(ArtifactResponse.class), new OutboundMessageContextLookup()); requesterLookupStrategy = Functions.compose(new SAMLMessageContextIssuerFunction(), new InboundMessageContextLookup()); }
/** Constructor. */ protected AbstractSAML2NameIDGenerator() { nameBuilder = (SAMLObjectBuilder<NameID>) XMLObjectProviderRegistrySupport.getBuilderFactory().<NameID>getBuilderOrThrow( NameID.DEFAULT_ELEMENT_NAME); requestLookupStrategy = Functions.compose(new MessageLookup<>(AuthnRequest.class), new InboundMessageContextLookup()); }
/** * Constructor. * * @param mapper mapper used to consume designators */ public FilterByQueriedAttributeDesignators(@Nonnull final SAML1AttributeDesignatorsMapperService mapper) { mapperService = Constraint.isNotNull(mapper, "MapperService cannot be null"); attributeContextLookupStrategy = Functions.compose(new ChildContextLookup<>(AttributeContext.class), new ChildContextLookup<ProfileRequestContext,RelyingPartyContext>(RelyingPartyContext.class)); requestLookupStrategy = Functions.compose(new MessageLookup(Request.class), new InboundMessageContextLookup()); }
/** Constructor. */ public VerifyChannelBindings() { channelBindingsLookupStrategy1 = Functions.compose(new ChildContextLookup<>(ChannelBindingsContext.class), new InboundMessageContextLookup()); channelBindingsLookupStrategy2 = Functions.compose(new ChildContextLookup<>(ChannelBindingsContext.class), Functions.compose(new ChildContextLookup<>(SOAP11Context.class), new InboundMessageContextLookup())); channelBindingsCreationStrategy = Functions.compose(new ChildContextLookup<>(ChannelBindingsContext.class, true), new OutboundMessageContextLookup()); }
/** * Constructor. * * @param mapper mapper used to consume designators */ public FilterByQueriedAttributes(@Nonnull final SAML2AttributesMapperService mapper) { mapperService = Constraint.isNotNull(mapper, "MapperService cannot be null"); attributeContextLookupStrategy = Functions.compose(new ChildContextLookup<>(AttributeContext.class), new ChildContextLookup<ProfileRequestContext,RelyingPartyContext>(RelyingPartyContext.class)); queryLookupStrategy = Functions.compose(new MessageLookup(AttributeQuery.class), new InboundMessageContextLookup()); }
/** * Constructor. */ public AddDelegationRestrictionToAssertions() { responseLookupStrategy = Functions.compose(new MessageLookup<>(Response.class), new OutboundMessageContextLookup()); presenterContextLookupStrategy = Functions.compose(new ChildContextLookup<>(SAMLPresenterEntityContext.class), new InboundMessageContextLookup()); libertyContextLookupStrategy = new ChildContextLookup<>(LibertySSOSContext.class); }
/** * Constructor. */ public MapRequestedAttributesInAttributeConsumingService() { super(); // At this point, by default the SAMLMetadataContext hangs off the SAMLPeerContext attributeConsumingServiceContextLookupStrategy = Functions.compose( new ChildContextLookup(AttributeConsumingServiceContext.class), Functions.compose( new ChildContextLookup<>(SAMLMetadataContext.class), Functions.compose( new ChildContextLookup<>(SAMLPeerEntityContext.class), new InboundMessageContextLookup()))); }
/** Constructor. */ public ProcessLogoutRequest() { subjectContextCreationStrategy = new ChildContextLookup<>(SubjectContext.class, true); sessionContextCreationStrategy = new ChildContextLookup<>(SessionContext.class, true); logoutContextCreationStrategy = new ChildContextLookup<>(LogoutContext.class, true); sessionResolverCriteriaStrategy = new Function<ProfileRequestContext,CriteriaSet>() { @Override public CriteriaSet apply(final ProfileRequestContext input) { if (logoutRequest != null && logoutRequest.getIssuer() != null && logoutRequest.getNameID() != null) { return new CriteriaSet(new SPSessionCriterion(logoutRequest.getIssuer().getValue(), logoutRequest.getNameID().getValue())); } else { return new CriteriaSet(); } } }; logoutRequestLookupStrategy = Functions.compose(new MessageLookup<>(LogoutRequest.class), new InboundMessageContextLookup()); qualifiedNameIDFormatsLookupStrategy = new QualifiedNameIDFormatsLookupFunction(); qualifiedNameIDFormats = Collections.emptySet(); setAssertingPartyLookupStrategy(new ResponderIdLookupFunction()); setRelyingPartyLookupStrategy(new RelyingPartyIdLookupFunction()); }
/** Constructor. */ public CopyNameIdentifierFromRequest() { subjectBuilder = (SAMLObjectBuilder<Subject>) XMLObjectProviderRegistrySupport.getBuilderFactory().<Subject>getBuilderOrThrow( Subject.DEFAULT_ELEMENT_NAME); nameIdentifierBuilder = (SAMLObjectBuilder<NameIdentifier>) XMLObjectProviderRegistrySupport.getBuilderFactory().<NameIdentifier>getBuilderOrThrow( NameIdentifier.DEFAULT_ELEMENT_NAME); overwriteExisting = true; nameIdentifierContextLookupStrategy = Functions.compose( new ChildContextLookup<>(SAMLSubjectNameIdentifierContext.class, true), new InboundMessageContextLookup()); responseLookupStrategy = Functions.compose(new MessageLookup<>(Response.class), new OutboundMessageContextLookup()); }