Uses of Interface
com.soklet.CorsAuthorizer
Packages that use CorsAuthorizer
-
Uses of CorsAuthorizer in com.soklet
Methods in com.soklet that return CorsAuthorizerModifier and TypeMethodDescriptionSokletConfig.getCorsAuthorizer()How Soklet handles Cross-Origin Resource Sharing (CORS).static CorsAuthorizerCorsAuthorizer.withAcceptAllPolicy()Acquires a threadsafeCorsAuthorizerconfigured to permit all cross-domain requests regardless ofOrigin.static CorsAuthorizerCorsAuthorizer.withRejectAllPolicy()Acquires a threadsafeCorsAuthorizerconfigured to reject all cross-domain requests regardless ofOrigin.static CorsAuthorizerCorsAuthorizer.withWhitelistAuthorizer(Function<String, Boolean> whitelistAuthorizer) Acquires a threadsafeCorsAuthorizerconfigured to accept only those cross-domain requests whoseOriginis allowed by the providedwhitelistAuthorizerfunction.static CorsAuthorizerCorsAuthorizer.withWhitelistAuthorizer(Function<String, Boolean> whitelistAuthorizer, Function<String, Boolean> allowCredentialsResolver) Acquires a threadsafeCorsAuthorizerconfigured to accept only those cross-domain requests whoseOriginis allowed by the providedwhitelistAuthorizerfunction.static CorsAuthorizerCorsAuthorizer.withWhitelistedOrigins(Set<String> whitelistedOrigins) Acquires a threadsafeCorsAuthorizerconfigured to accept only those cross-domain requests whoseOriginmatches a value in the provided set ofwhitelistedOrigins.static CorsAuthorizerCorsAuthorizer.withWhitelistedOrigins(Set<String> whitelistedOrigins, Function<String, Boolean> allowCredentialsResolver) Acquires a threadsafeCorsAuthorizerconfigured to accept only those cross-domain requests whoseOriginmatches a value in the provided set ofwhitelistedOrigins.Methods in com.soklet with parameters of type CorsAuthorizerModifier and TypeMethodDescriptionSokletConfig.Builder.corsAuthorizer(CorsAuthorizer corsAuthorizer) SokletConfig.Copier.corsAuthorizer(CorsAuthorizer corsAuthorizer)