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

uk.gov.di.ipv.cri.common.library.domain.SessionRequest Maven / Gradle / Ivy

The newest version!
package uk.gov.di.ipv.cri.common.library.domain;

import com.nimbusds.jwt.SignedJWT;
import uk.gov.di.ipv.cri.common.library.domain.personidentity.SharedClaims;
import uk.gov.di.ipv.cri.common.library.persistence.item.EvidenceRequest;

import java.net.URI;
import java.util.Date;
import java.util.Objects;

public class SessionRequest {
    private String issuer;
    private String subject;
    private String audience;
    private Date expirationTime;
    private Date notBeforeTime;
    private String responseType;
    private String clientId;
    private String jwtClientId;
    private URI redirectUri;
    private String state;
    private SignedJWT signedJWT;
    private SharedClaims sharedClaims;
    private String persistentSessionId;
    private String clientSessionId;
    private String clientIpAddress;
    private EvidenceRequest evidenceRequest;
    private String context;

    public String getIssuer() {
        return issuer;
    }

    public void setIssuer(String issuer) {
        this.issuer = issuer;
    }

    public String getSubject() {
        return subject;
    }

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

    public String getAudience() {
        return audience;
    }

    public void setAudience(String audience) {
        this.audience = audience;
    }

    public Date getExpirationTime() {
        return expirationTime;
    }

    public void setExpirationTime(Date expirationTime) {
        this.expirationTime = expirationTime;
    }

    public Date getNotBeforeTime() {
        return notBeforeTime;
    }

    public void setNotBeforeTime(Date notBeforeTime) {
        this.notBeforeTime = notBeforeTime;
    }

    public String getResponseType() {
        return responseType;
    }

    public void setResponseType(String responseType) {
        this.responseType = responseType;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public URI getRedirectUri() {
        return redirectUri;
    }

    public void setRedirectUri(URI redirectUri) {
        this.redirectUri = redirectUri;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public SignedJWT getSignedJWT() {
        return signedJWT;
    }

    public void setSignedJWT(SignedJWT signedJWT) {
        this.signedJWT = signedJWT;
    }

    public String getJwtClientId() {
        return jwtClientId;
    }

    public void setJwtClientId(String jwtClientId) {
        this.jwtClientId = jwtClientId;
    }

    public SharedClaims getSharedClaims() {
        return sharedClaims;
    }

    public void setSharedClaims(SharedClaims sharedClaims) {
        this.sharedClaims = sharedClaims;
    }

    public boolean hasSharedClaims() {
        return Objects.nonNull(this.sharedClaims);
    }

    public String getPersistentSessionId() {
        return persistentSessionId;
    }

    public void setPersistentSessionId(String persistentSessionId) {
        this.persistentSessionId = persistentSessionId;
    }

    public String getClientSessionId() {
        return clientSessionId;
    }

    public void setClientSessionId(String clientSessionId) {
        this.clientSessionId = clientSessionId;
    }

    public String getClientIpAddress() {
        return clientIpAddress;
    }

    public void setClientIpAddress(String clientIpAddress) {
        this.clientIpAddress = clientIpAddress;
    }

    public EvidenceRequest getEvidenceRequest() {
        return evidenceRequest;
    }

    public void setEvidenceRequest(EvidenceRequest evidenceRequest) {
        this.evidenceRequest = evidenceRequest;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy