AuthnRequest.java 3.03 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.granite.auth.saml.model;

import com.adobe.granite.auth.saml.model.AbstractRequest;
import com.adobe.granite.auth.saml.model.NameIdPolicy;
import com.adobe.granite.auth.saml.model.Subject;

public class AuthnRequest
extends AbstractRequest {
    private Subject subject;
    private NameIdPolicy nameIdPolicy;
    private boolean forceAuthn;
    private boolean isPassive;
    private String assertionConsumerServiceUrl;
    private String assertionConsumerServiceIndex;
    private String protocolBinding;
    private String attributeConsumerServiceIndex;
    private String providerName;

    public Subject getSubject() {
        return this.subject;
    }

    public void setSubject(Subject subject) {
        this.subject = subject;
    }

    public NameIdPolicy getNameIdPolicy() {
        return this.nameIdPolicy;
    }

    public void setNameIdPolicy(NameIdPolicy nameIdPolicy) {
        this.nameIdPolicy = nameIdPolicy;
    }

    public boolean isForceAuthn() {
        return this.forceAuthn;
    }

    public void setForceAuthn(boolean forceAuthn) {
        this.forceAuthn = forceAuthn;
    }

    public boolean isPassive() {
        return this.isPassive;
    }

    public void setPassive(boolean isPassive) {
        this.isPassive = isPassive;
    }

    public String getAssertionConsumerServiceUrl() {
        return this.assertionConsumerServiceUrl;
    }

    public void setAssertionConsumerServiceUrl(String assertionConsumerUrl) {
        this.assertionConsumerServiceUrl = assertionConsumerUrl;
    }

    public String getAssertionConsumerServiceIndex() {
        return this.assertionConsumerServiceIndex;
    }

    public void setAssertionConsumerServiceIndex(String assertionConsumerServiceIndex) {
        this.assertionConsumerServiceIndex = assertionConsumerServiceIndex;
    }

    public String getProtocolBinding() {
        return this.protocolBinding;
    }

    public void setProtocolBinding(String protocolBinding) {
        this.protocolBinding = protocolBinding;
    }

    public String getAttributeConsumerServiceIndex() {
        return this.attributeConsumerServiceIndex;
    }

    public void setAttributeConsumerServiceIndex(String attributeConsumerServiceIndex) {
        this.attributeConsumerServiceIndex = attributeConsumerServiceIndex;
    }

    public String getProviderName() {
        return this.providerName;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }

    public boolean hasProtocolBinding() {
        return null != this.protocolBinding && this.protocolBinding.length() > 0;
    }

    public boolean hasNameIdPolicy() {
        return null != this.nameIdPolicy;
    }

    public boolean hasAssertionConsumerServiceURL() {
        return null != this.assertionConsumerServiceUrl && this.assertionConsumerServiceUrl.length() > 0;
    }

    public boolean hasAssertionConsumerServiceIndex() {
        return null != this.assertionConsumerServiceIndex && this.assertionConsumerServiceIndex.length() > 0;
    }
}