Search in sources :

Example 6 with DefaultMetadataExtractor

use of org.springframework.messaging.rsocket.DefaultMetadataExtractor in project spring-security by spring-projects.

the class AuthenticationPayloadExchangeConverter method createDefaultExtractor.

private static MetadataExtractor createDefaultExtractor() {
    DefaultMetadataExtractor result = new DefaultMetadataExtractor(new ByteArrayDecoder());
    result.metadataToExtract(AUTHENTICATION_MIME_TYPE, byte[].class, "authentication");
    return result;
}
Also used : DefaultMetadataExtractor(org.springframework.messaging.rsocket.DefaultMetadataExtractor) ByteArrayDecoder(org.springframework.core.codec.ByteArrayDecoder)

Aggregations

DefaultMetadataExtractor (org.springframework.messaging.rsocket.DefaultMetadataExtractor)6 ByteArrayDecoder (org.springframework.core.codec.ByteArrayDecoder)5 Test (org.junit.jupiter.api.Test)4 ReactiveAdapterRegistry (org.springframework.core.ReactiveAdapterRegistry)3 ByteArrayEncoder (org.springframework.core.codec.ByteArrayEncoder)3 RSocketStrategies (org.springframework.messaging.rsocket.RSocketStrategies)3 AntPathMatcher (org.springframework.util.AntPathMatcher)3 SimpleRouteMatcher (org.springframework.util.SimpleRouteMatcher)3 ByteBufferDecoder (org.springframework.core.codec.ByteBufferDecoder)1 ByteBufferEncoder (org.springframework.core.codec.ByteBufferEncoder)1 BasicAuthenticationDecoder (org.springframework.security.rsocket.metadata.BasicAuthenticationDecoder)1