Customizer that extracts the attribute of an SSLContext
and makes them available via Request#getAttribute(String)
using the names:
EndPoint.SslSessionData#ATTRIBUTE for EndPoint.SslSessionData X509_ATTRIBUTE for the local certificate as a X509 instanceEndPoint.SslSessionData
| Modifier and Type | Class and Description |
|---|---|
| protected static class | |
| protected class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private boolean | |
| private HttpField | |
| private boolean | |
| private long | |
| private static final Logger | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | SecureRequestCustomizer(boolean
True if the SNI Host name must match. sniHostCheck, long The max age in seconds for a Strict-Transport-Security response header. If set less than zero then no header is sent. stsMaxAgeSeconds, boolean If true, a include subdomain property is sent with any Strict-Transport-Security header stsIncludeSubdomains)
|
| public | SecureRequestCustomizer(boolean
True if a SNI certificate is required. sniRequired, boolean True if the SNI Host name must match. sniHostCheck, long The max age in seconds for a Strict-Transport-Security response header. If set less than zero then no header is sent. stsMaxAgeSeconds, boolean If true, a include subdomain property is sent with any Strict-Transport-Security header stsIncludeSubdomains)
|
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public Request | customize(Request request, HttpFields.
Implements org. |
| private void | |
| public long | Returns: The max age in seconds for a Strict-Transport-Security response header. If set less than zero then no header is sent.
|
| private X509 | |
| public boolean | |
| public boolean | |
| public boolean | Returns: whether theincludeSubdomains attribute is sent with the Strict-Transport-Security response header
|
| protected Request | |
| public void | setSniHostCheck(boolean
True if the SNI Host name must match when there is an SNI certificate. sniHostCheck)
|
| public void | setSniRequired(boolean
True if SNI is required, else requests will be rejected with 400 response. sniRequired)
|
| public void | setStsIncludeSubDomains(boolean
whether the stsIncludeSubDomains)includeSubdomains attribute is sent with the Strict-Transport-Security response headerSet whether the |
| public void | setStsMaxAge(long
the max age in seconds for the Strict-Transport-Security response header.
If less than zero then no Strict-Transport-Security response header is set. stsMaxAgeSeconds)Sets the Strict-Transport-Security max age in seconds. |
| public void | setStsMaxAge(long
The max age value period, TimeUnit The units)TimeUnit of the max ageSets the Strict-Transport-Security max age in the given time unit. |
| public String |
| _sniHostCheck | back to summary |
|---|---|
| private boolean _sniHostCheck | |
| _sniRequired | back to summary |
|---|---|
| private boolean _sniRequired | |
| _stsField | back to summary |
|---|---|
| private HttpField _stsField | |
| _stsIncludeSubDomains | back to summary |
|---|---|
| private boolean _stsIncludeSubDomains | |
| _stsMaxAge | back to summary |
|---|---|
| private long _stsMaxAge | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| X509_ATTRIBUTE | back to summary |
|---|---|
| public static final String X509_ATTRIBUTE | |
| SecureRequestCustomizer | back to summary |
|---|---|
| public SecureRequestCustomizer() | |
| SecureRequestCustomizer | back to summary |
|---|---|
| public SecureRequestCustomizer(boolean sniHostCheck) | |
| SecureRequestCustomizer | back to summary |
|---|---|
public SecureRequestCustomizer(boolean sniHostCheck, long stsMaxAgeSeconds, boolean stsIncludeSubdomains)
| |
| SecureRequestCustomizer | back to summary |
|---|---|
public SecureRequestCustomizer(boolean sniRequired, boolean sniHostCheck, long stsMaxAgeSeconds, boolean stsIncludeSubdomains)
| |
| checkSni | back to summary |
|---|---|
| protected void checkSni(Request request, SSLSession session) | |
| customize | back to summary |
|---|---|
| public Request customize(Request request, HttpFields. Implements org.
| |
| formatSTS | back to summary |
|---|---|
| private void formatSTS() | |
| getStsMaxAge | back to summary |
|---|---|
public long getStsMaxAge()
| |
| getX509 | back to summary |
|---|---|
| private X509 getX509(SSLSession session) | |
| isSniHostCheck | back to summary |
|---|---|
public boolean isSniHostCheck()
| |
| isSniRequired | back to summary |
|---|---|
public boolean isSniRequired()
| |
| isStsIncludeSubDomains | back to summary |
|---|---|
public boolean isStsIncludeSubDomains()
| |
| newSecureRequest | back to summary |
|---|---|
| protected Request newSecureRequest(Request request, EndPoint. | |
| setSniHostCheck | back to summary |
|---|---|
public void setSniHostCheck(boolean sniHostCheck)
| |
| setSniRequired | back to summary |
|---|---|
public void setSniRequired(boolean sniRequired)
| |
| setStsIncludeSubDomains | back to summary |
|---|---|
| public void setStsIncludeSubDomains(boolean stsIncludeSubDomains) Set whether the
| |
| setStsMaxAge | back to summary |
|---|---|
| public void setStsMaxAge(long stsMaxAgeSeconds) Sets the Strict-Transport-Security max age in seconds.
| |
| setStsMaxAge | back to summary |
|---|---|
| public void setStsMaxAge(long period, TimeUnit units) Sets the Strict-Transport-Security max age in the given time unit. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isSecure()
Overrides org. Implements org. |
| SecureRequest | back to summary |
|---|---|
| public SecureRequest(Request wrapped) | |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Overrides org. Implements org.
| |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | isSecure()
Overrides org. Implements org. |
| ATTRIBUTES | back to summary |
|---|---|
| private static final Set<String> ATTRIBUTES | |
| SecureRequestWithSslSessionData | back to summary |
|---|---|
| protected SecureRequestWithSslSessionData(Request request, EndPoint. | |
| isSecure | back to summary |
|---|---|
| public boolean isSecure() Overrides org. Implements org.
| |