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