/** Constructor. */ public EncryptNameIDs() { messageLookupStrategy = Functions.compose(new MessageLookup<>(SAMLObject.class), new OutboundMessageContextLookup()); excludedFormats = Collections.singleton(NameID.ENTITY); }
/** Constructor. */ public AddNotBeforeConditionToAssertions() { responseLookupStrategy = Functions.compose(new MessageLookup<>(SAMLObject.class), new OutboundMessageContextLookup()); }
/** Constructor. */ public EncryptAttributes() { responseLookupStrategy = Functions.compose(new MessageLookup<>(StatusResponseType.class), new OutboundMessageContextLookup()); }
/** Constructor. */ public AddOneTimeUseConditionToAssertions() { responseLookupStrategy = Functions.compose(new MessageLookup<>(Response.class), new OutboundMessageContextLookup()); }
/** Constructor. */ public AddGeneratedKeyToAssertions() { ecpContextLookupStrategy = Functions.compose(new ChildContextLookup<>(ECPContext.class), new OutboundMessageContextLookup()); responseLookupStrategy = Functions.compose(new MessageLookup<>(Response.class), new OutboundMessageContextLookup()); }
/** Constructor. */ public AddChannelBindingsToAssertions() { channelBindingsContextLookupStrategy = Functions.compose(new ChildContextLookup<>(ChannelBindingsContext.class), new OutboundMessageContextLookup()); responseLookupStrategy = Functions.compose(new MessageLookup<>(Response.class), new OutboundMessageContextLookup()); }
/** Constructor. */ public AddDoNotCacheConditionToAssertions() { responseLookupStrategy = Functions.compose(new MessageLookup<>(Response.class), new OutboundMessageContextLookup()); }
/** Constructor. */ public EncryptAssertions() { responseLookupStrategy = Functions.compose(new MessageLookup<>(StatusResponseType.class), new OutboundMessageContextLookup()); }
/** Constructor. */ public AddNotOnOrAfterConditionToAssertions() { responseLookupStrategy = Functions.compose(new MessageLookup<>(SAMLObject.class), new OutboundMessageContextLookup()); defaultAssertionLifetime = 5 * 60 * 1000; }
/** Constructor. */ public AddProxyRestrictionToAssertions() { responseLookupStrategy = Functions.compose(new MessageLookup<>(Response.class), new OutboundMessageContextLookup()); }
/** * Constructor. */ public AddAudienceRestrictionToAssertions() { addingAudiencesToExistingRestriction = true; responseLookupStrategy = Functions.compose(new MessageLookup<>(SAMLObject.class), new OutboundMessageContextLookup()); }
/** * Constructor. * * @throws NoSuchAlgorithmException if unable to construct default random generator */ public PopulateECPContext() throws NoSuchAlgorithmException { ecpContextCreationStrategy = Functions.compose(new ChildContextLookup<>(ECPContext.class, true), new OutboundMessageContextLookup()); encryptionContextLookupStrategy = Functions.compose(new ChildContextLookup<>(EncryptionContext.class), new OutboundMessageContextLookup()); try { randomGenerator = SecureRandom.getInstance("SHA1PRNG"); } catch (final NoSuchAlgorithmException e) { throw new RuntimeException("SHA1PRNG is required to be supported by the JVM but is not", e); } requireEncryption = true; }
/** Constructor. */ public AddStatusToResponse() { responseLookupStrategy = Functions.compose(new MessageLookup<>(StatusResponseType.class), new OutboundMessageContextLookup()); detailedErrorsCondition = Predicates.alwaysFalse(); defaultStatusCodes = Collections.emptyList(); detailedErrors = false; }
/** Constructor. */ public AddStatusToResponse() { responseLookupStrategy = Functions.compose(new MessageLookup<>(Response.class), new OutboundMessageContextLookup()); detailedErrorsCondition = Predicates.alwaysFalse(); defaultStatusCodes = Collections.emptyList(); detailedErrors = false; }
/** Constructor. */ public InitializeOutboundMessageContextForError() { // Default: outbound msg context -> SAMLBindingContext bindingContextLookupStrategy = Functions.compose( new ChildContextLookup<>(SAMLBindingContext.class, true), new OutboundMessageContextLookup()); relyingPartyContextLookupStrategy = new ChildContextLookup<>(RelyingPartyContext.class); }
/** Constructor. */ public SignAssertions() { responseLookupStrategy = Functions.compose(new MessageLookup<>(SAMLObject.class), new OutboundMessageContextLookup()); securityParametersLookupStrategy = new ChildContextLookup<>(SecurityParametersContext.class); }
/** Constructor. */ public AddInResponseToToResponse() { responseLookupStrategy = Functions.compose(new MessageLookup<>(SAMLObject.class), new OutboundMessageContextLookup()); requestIdLookupStrategy = new DefaultRequestIdLookupStrategy(); }
/** Constructor. */ public DefaultLocalErrorPredicate() { // Default: outbound msg context -> SAMLBindingContext bindingContextLookupStrategy = Functions.compose( new ChildContextLookup<>(SAMLBindingContext.class), new OutboundMessageContextLookup()); // Default: outbound msg context -> SAMLPeerEntityContext -> SAMLEndpointContext endpointContextLookupStrategy = Functions.compose( new ChildContextLookup<>(SAMLEndpointContext.class), Functions.compose(new ChildContextLookup<>(SAMLPeerEntityContext.class), new OutboundMessageContextLookup())); eventContextLookupStrategy = new CurrentOrPreviousEventLookup(); localEvents = Collections.emptySet(); }
/** * Constructor. */ public PopulateSignatureSigningParameters() { // Create context by default. securityParametersContextLookupStrategy = Functions.compose( new ChildContextLookup<>(SecurityParametersContext.class, true), new OutboundMessageContextLookup()); // Default: outbound msg context -> SAMLPeerEntityContext -> SAMLMetadataContext metadataContextLookupStrategy = Functions.compose( new ChildContextLookup<>(SAMLMetadataContext.class), Functions.compose(new ChildContextLookup<>(SAMLPeerEntityContext.class), new OutboundMessageContextLookup())); }
/** Constructor. */ public WriteFTICKSLog() { relyingPartyLookupStrategy = new RelyingPartyIdLookupFunction(); responderLookupStrategy = new ResponderIdLookupFunction(); usernameLookupStrategy = Functions.compose(new SubjectContextPrincipalLookupFunction(), new ChildContextLookup(SubjectContext.class)); authenticationMethodLookupStrategy = new AuthnContextAuditExtractor( Functions.compose(new MessageLookup(SAMLObject.class), new OutboundMessageContextLookup())); statusCodeLookupStrategy = new StatusCodeAuditExtractor( Functions.compose(new MessageLookup(SAMLObject.class), new OutboundMessageContextLookup())); }