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 Summary
FieldsModifier and TypeFieldDescription(package private) X509CertificateThe attesting party's certificate.(package private) StringThe attesting party's IP address.(package private) StringThe endpoint URI at which the assertion for validation was received. -
Constructor Summary
Constructors -
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.voidsetAttesterCertificate(X509Certificate certificate) Set the attesting party's certificate.voidsetAttesterIPAddress(String address) Set the attesting party's IP address.voidsetReceiverEndpointURI(String endpointURI) Set the endpoint URI at which the assertion being validated was received.
-
Field Details
-
attesterCertificate
The attesting party's certificate. -
attesterIPAddress
The attesting party's IP address. -
receiverEndpointURI
The endpoint URI at which the assertion for validation was received.
-
-
Constructor Details
-
BasicNetworkInformationSupplier
public BasicNetworkInformationSupplier()
-
-
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
-
setAttesterCertificate
Set the attesting party's certificate.- Parameters:
certificate- the attesting party's certificate
-
setAttesterIPAddress
Set the attesting party's IP address.- Parameters:
address- the attesting party's IP address
-
setReceiverEndpointURI
Set the endpoint URI at which the assertion being validated was received.- Parameters:
endpointURI- the endpoint URI
-