package uk.gov.dvla.domain.authentication.nino;

import uk.gov.dvla.domain.authentication.AuthenticationToken;

import java.util.Date;

public class NinoAuthenticationToken extends AuthenticationToken
{
    private String dln;
    private String postcode;
    private String nino;
    private Date dob;
    private String surname;

    public NinoAuthenticationToken() {}

    public NinoAuthenticationToken(String dln, String postcode, String nino, Date dob, String surname) {

        this.dln = dln;
        this.postcode = postcode;
        this.nino = nino;
        this.dob = dob;
        this.surname = surname;
    }

    public String getDln() {
        return dln;
    }

    public void setDln(String dln) {
        this.dln = dln;
    }

    public String getPostcode() {
        return postcode;
    }

    public void setPostcode(String postcode) {
        this.postcode = postcode;
    }

    public String getNino() {
        return nino;
    }

    public void setNino(String nino) {
        this.nino = nino;
    }

    public Date getDob() {
        return dob;
    }

    public void setDob(Date dob) {
        this.dob = dob;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }
}

@@ -323,16 +323,113 @@
 surname;
+%0A    private Boolean isDeceased;%0A    private Boolean isCoreMatch;%0A    private Boolean hasWarning;
 %0A%0A    pu
@@ -708,32 +708,498 @@
 surname;%0A    %7D%0A%0A
+    public NinoAuthenticationToken(String dln, String postcode, String nino, Date dob, String surname,%0A                                    Boolean isDeceased, Boolean isCoreMatch, Boolean hasWarning) %7B%0A%0A        this.dln = dln;%0A        this.postcode = postcode;%0A        this.nino = nino;%0A        this.dob = dob;%0A        this.surname = surname;%0A        this.isDeceased = isDeceased;%0A        this.isCoreMatch = isCoreMatch;%0A        this.hasWarning = hasWarning;%0A    %7D%0A%0A
     public Strin
@@ -1815,24 +1815,24 @@
  surname) %7B%0A
-
         this
@@ -1856,11 +1856,521 @@
 e;%0A    %7D
+%0A%0A    public Boolean getIsDeceased() %7B%0A        return isDeceased;%0A    %7D%0A%0A    public void setIsDeceased(Boolean isDeceased) %7B%0A        this.isDeceased = isDeceased;%0A    %7D%0A%0A    public Boolean getIsCoreMatch() %7B%0A        return isCoreMatch;%0A    %7D%0A%0A    public void setIsCoreMatch(Boolean isCoreMatch) %7B%0A        this.isCoreMatch = isCoreMatch;%0A    %7D%0A%0A    public Boolean getHasWarning() %7B%0A        return hasWarning;%0A    %7D%0A%0A    public void setHasWarning(Boolean hasWarning) %7B%0A        this.hasWarning = hasWarning;%0A    %7D
 %0A%7D%0A

Add Matching Service, Nino Matching Service implementation and associated acceptance tests