Class HttpServletRequestNetworkInformationSupplier
java.lang.Object
org.opensaml.saml.saml2.assertion.messaging.HttpServletRequestNetworkInformationSupplier
- All Implemented Interfaces:
AssertionValidationNetworkInformationSupplier
public class HttpServletRequestNetworkInformationSupplier
extends Object
implements AssertionValidationNetworkInformationSupplier
Implementation of
AssertionValidationNetworkInformationSupplier which wraps an
instance of HttpServletRequest.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor. -
Method Summary
Modifier and TypeMethodDescriptionThe X.509 certificate presented by the attesting party, may be null.The attesting party's IP address, may be null.The endpoint URI at which the assertion being validated was received, may be null.
-
Field Details
-
servletRequest
The wrapped servlet request.
-
-
Constructor Details
-
HttpServletRequestNetworkInformationSupplier
Constructor.- Parameters:
request- the servlet request instanc3
-
-
Method Details
-
getAttesterCertificate
The X.509 certificate presented by the attesting party, may be null.- Specified by:
getAttesterCertificatein interfaceAssertionValidationNetworkInformationSupplier- Returns:
- the attesting party's certificate, or null
-
getAttesterIPAddress
The attesting party's IP address, may be null.For IPv6 addresses this should be in "sanitized" form, without enclosing square brackets.
- Specified by:
getAttesterIPAddressin interfaceAssertionValidationNetworkInformationSupplier- Returns:
- the attesting party's IP address, or null if not known
-
getReceiverEndpointURI
The endpoint URI at which the assertion being validated was received, may be null.- Specified by:
getReceiverEndpointURIin interfaceAssertionValidationNetworkInformationSupplier- Returns:
- the endpoint URI, or null if not applicable
-