All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.gov.ida.saml.hub.domain.InboundResponseFromIdp Maven / Gradle / Ivy

There is a newer version: 3.4.6-15872
Show newest version
package uk.gov.ida.saml.hub.domain;

import org.joda.time.DateTime;
import org.opensaml.xmlsec.signature.Signature;
import uk.gov.ida.saml.core.domain.IdaSamlResponse;
import uk.gov.ida.saml.core.domain.PassthroughAssertion;

import java.net.URI;
import java.util.Optional;

public class InboundResponseFromIdp extends IdaSamlResponse {
    private Optional matchingDatasetAssertion;
    private Optional authnStatementAssertion;
    private Optional notOnOrAfter;
    private Optional signature;
    private IdpIdaStatus status;

    public InboundResponseFromIdp(
            String id,
            String inResponseTo,
            String issuer,
            DateTime issueInstant,
            Optional notOnOrAfter,
            IdpIdaStatus status,
            Optional signature,
            Optional matchingDatasetAssertion,
            URI destination,
            Optional authnStatementAssertion) {
        super(id, issueInstant, inResponseTo, issuer, destination);
        this.notOnOrAfter = notOnOrAfter;
        this.signature = signature;
        this.matchingDatasetAssertion = matchingDatasetAssertion;
        this.authnStatementAssertion = authnStatementAssertion;
        this.status = status;
    }

    public Optional getMatchingDatasetAssertion() {
        return matchingDatasetAssertion;
    }

    public Optional getAuthnStatementAssertion() {
        return authnStatementAssertion;
    }

    public Optional getSignature() {
        return signature;
    }

    public IdpIdaStatus getStatus() {
        return status;
    }

    public Optional getNotOnOrAfter() {
        return notOnOrAfter;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy