Example usage for org.springframework.http.server.reactive DefaultSslInfo DefaultSslInfo

List of usage examples for org.springframework.http.server.reactive DefaultSslInfo DefaultSslInfo

Introduction

In this page you can find the example usage for org.springframework.http.server.reactive DefaultSslInfo DefaultSslInfo.

Prototype

DefaultSslInfo(@Nullable String sessionId, X509Certificate[] peerCertificates) 

Source Link

Usage

From source file:org.springframework.http.server.reactive.ServletServerHttpRequest.java

@Nullable
protected SslInfo initSslInfo() {
    if (!this.request.isSecure()) {
        return null;
    }//from   w ww . j  a  va  2s  .  c  o m
    return new DefaultSslInfo((String) request.getAttribute("javax.servlet.request.ssl_session_id"),
            (X509Certificate[]) request.getAttribute("java.security.cert.X509Certificate"));
}