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

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

package uk.gov.ida.saml.hub.domain;

import java.util.Optional;
import javax.validation.constraints.NotNull;
import org.joda.time.DateTime;
import uk.gov.ida.saml.core.domain.AuthnContext;
import uk.gov.ida.saml.core.domain.HubAssertion;
import uk.gov.ida.saml.core.domain.PersistentId;

import java.net.URI;
import java.util.List;

public class HubAttributeQueryRequest extends BaseHubAttributeQueryRequest {
    private String encryptedAuthnAssertion;
    private Optional cycle3AttributeAssertion;
    private Optional> userAccountCreationAttributes;
    private AuthnContext authnContext;
    @NotNull
    private String encryptedMatchingDatasetAssertion;

    public HubAttributeQueryRequest(
            String id,
            PersistentId persistentId,
            String encryptedMatchingDatasetAssertion,
            String encryptedAuthnAssertion,
            Optional cycle3AttributeAssertion,
            Optional> userAccountCreationAttributes,
            DateTime issueInstant,
            URI assertionConsumerServiceUrl,
            String authnRequestIssuerEntityId,
            AuthnContext authnContext,
            String hubEntityId) {
        super(id, hubEntityId, issueInstant, null, persistentId, assertionConsumerServiceUrl, authnRequestIssuerEntityId);
        this.encryptedAuthnAssertion = encryptedAuthnAssertion;
        this.cycle3AttributeAssertion = cycle3AttributeAssertion;
        this.userAccountCreationAttributes = userAccountCreationAttributes;
        this.authnContext = authnContext;
        this.encryptedMatchingDatasetAssertion = encryptedMatchingDatasetAssertion;
    }


    public Optional getCycle3AttributeAssertion() {
        return cycle3AttributeAssertion;
    }

    public Optional> getUserAccountCreationAttributes() {
        return userAccountCreationAttributes;
    }

    public String getEncryptedAuthnAssertion() {
        return encryptedAuthnAssertion;
    }

    public AuthnContext getAuthnContext() {
        return authnContext;
    }

    public String getEncryptedMatchingDatasetAssertion() {
        return encryptedMatchingDatasetAssertion;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy