Class BasicNetworkInformationSupplier

java.lang.Object
org.opensaml.saml.saml2.assertion.messaging.BasicNetworkInformationSupplier
All Implemented Interfaces:
AssertionValidationNetworkInformationSupplier

public class BasicNetworkInformationSupplier extends Object implements AssertionValidationNetworkInformationSupplier
Basic property-based implementation of AssertionValidationNetworkInformationSupplier.
  • Field Details

    • attesterCertificate

      @Nullable X509Certificate attesterCertificate
      The attesting party's certificate.
    • attesterIPAddress

      @Nullable String attesterIPAddress
      The attesting party's IP address.
    • receiverEndpointURI

      @Nullable String receiverEndpointURI
      The endpoint URI at which the assertion for validation was received.
  • Constructor Details

    • BasicNetworkInformationSupplier

      public BasicNetworkInformationSupplier()
  • Method Details

    • getAttesterCertificate

      @Nullable public X509Certificate getAttesterCertificate()
      The X.509 certificate presented by the attesting party, may be null.
      Specified by:
      getAttesterCertificate in interface AssertionValidationNetworkInformationSupplier
      Returns:
      the attesting party's certificate, or null
    • getAttesterIPAddress

      @Nullable public String 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:
      getAttesterIPAddress in interface AssertionValidationNetworkInformationSupplier
      Returns:
      the attesting party's IP address, or null if not known
    • getReceiverEndpointURI

      @Nullable public String getReceiverEndpointURI()
      The endpoint URI at which the assertion being validated was received, may be null.
      Specified by:
      getReceiverEndpointURI in interface AssertionValidationNetworkInformationSupplier
      Returns:
      the endpoint URI, or null if not applicable
    • setAttesterCertificate

      public void setAttesterCertificate(@Nullable X509Certificate certificate)
      Set the attesting party's certificate.
      Parameters:
      certificate - the attesting party's certificate
    • setAttesterIPAddress

      public void setAttesterIPAddress(@Nullable String address)
      Set the attesting party's IP address.
      Parameters:
      address - the attesting party's IP address
    • setReceiverEndpointURI

      public void setReceiverEndpointURI(@Nullable String endpointURI)
      Set the endpoint URI at which the assertion being validated was received.
      Parameters:
      endpointURI - the endpoint URI