Search in sources :

Example 1 with BasicAuthenticationDecoder

use of org.springframework.security.rsocket.metadata.BasicAuthenticationDecoder in project spring-security by spring-projects.

the class BasicAuthenticationPayloadExchangeConverter method createDefaultExtractor.

private static MetadataExtractor createDefaultExtractor() {
    DefaultMetadataExtractor result = new DefaultMetadataExtractor(new BasicAuthenticationDecoder());
    result.metadataToExtract(UsernamePasswordMetadata.BASIC_AUTHENTICATION_MIME_TYPE, UsernamePasswordMetadata.class, (String) null);
    return result;
}
Also used : DefaultMetadataExtractor(org.springframework.messaging.rsocket.DefaultMetadataExtractor) BasicAuthenticationDecoder(org.springframework.security.rsocket.metadata.BasicAuthenticationDecoder)

Aggregations

DefaultMetadataExtractor (org.springframework.messaging.rsocket.DefaultMetadataExtractor)1 BasicAuthenticationDecoder (org.springframework.security.rsocket.metadata.BasicAuthenticationDecoder)1