/* * Copyright 2003 Federal Chancellery Austria * MOA-ID has been developed in a cooperation between BRZ, the Federal * Chancellery Austria - ICT staff unit, and Graz University of Technology. * * Licensed under the EUPL, Version 1.1 or - as soon they will be approved by * the European Commission - subsequent versions of the EUPL (the "Licence"); * You may not use this work except in compliance with the Licence. * You may obtain a copy of the Licence at: * http://www.osor.eu/eupl/ * * Unless required by applicable law or agreed to in writing, software * distributed under the Licence is distributed on an "AS IS" basis, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the Licence for the specific language governing permissions and * limitations under the Licence. * * This product combines work with different licenses. See the "NOTICE" text * file for details on the various modules and licenses. * The "NOTICE" text file is part of the distribution. Any derivative works * that you distribute must include a readable copy of the "NOTICE" text file. */ package at.gv.egovernment.moa.id.auth.data; import java.io.Serializable; import java.util.Date; import iaik.x509.X509Certificate; /** * This bean saves all information of the MOA-SP-Answer * after the verification of any signature * * @author Stefan Knirsch * @version $Id$ * */ public class VerifyXMLSignatureResponse implements Serializable{ private static final long serialVersionUID = 1L; /** The xmlDsigSubjectName to be stored */ private String xmlDsigSubjectName; /** The signatureCheckCode to be stored */ private int signatureCheckCode; /** The xmlDSIGManifestCheckCode to be stored */ private int xmlDSIGManifestCheckCode; /** The xmlDSIGManigest to be stored */ private boolean xmlDSIGManigest; /** The certificateCheckCode to be stored */ private int certificateCheckCode; /** The publicAuthority to be stored */ private boolean publicAuthority; /** The publicAuthorityCode to be stored */ private String publicAuthorityCode; /** The qualifiedCertificate to be stored */ private boolean qualifiedCertificate; /** The x509certificate to be stored */ private X509Certificate x509certificate; /** * The result of the signature manifest check. The default value -1 * indicates that the signature manifest has not been checked. */ private int signatureManifestCheckCode = -1; private Date signingDateTime; /** * Returns the certificateCheckCode. * @return int */ public int getCertificateCheckCode() { return certificateCheckCode; } /** * Returns the signatureCheckCode. * @return int */ public int getSignatureCheckCode() { return signatureCheckCode; } /** * Returns the xmlDSIGManifestCheckCode. * @return int */ public int getXmlDSIGManifestCheckCode() { return xmlDSIGManifestCheckCode; } /** * Returns the xmlDsigSubjectName. * @return String */ public String getXmlDsigSubjectName() { return xmlDsigSubjectName; } /** * Sets the certificateCheckCode. * @param certificateCheckCode The certificateCheckCode to set */ public void setCertificateCheckCode(int certificateCheckCode) { this.certificateCheckCode = certificateCheckCode; } /** * Sets the signatureCheckCode. * @param signatureCheckCode The signatureCheckCode to set */ public void setSignatureCheckCode(int signatureCheckCode) { this.signatureCheckCode = signatureCheckCode; } /** * Sets the xmlDSIGManifestCheckCode. * @param xmlDSIGManifestCheckCode The xmlDSIGManifestCheckCode to set */ public void setXmlDSIGManifestCheckCode(int xmlDSIGManifestCheckCode) { this.xmlDSIGManifestCheckCode = xmlDSIGManifestCheckCode; } /** * Sets the xmlDsigSubjectName. * @param xmlDsigSubjectName The xmlDsigSubjectName to set */ public void setXmlDsigSubjectName(String xmlDsigSubjectName) { this.xmlDsigSubjectName = xmlDsigSubjectName; } /** * Returns the publicAuthorityCode. * @return int */ public String getPublicAuthorityCode() { return publicAuthorityCode; } /** * Sets the publicAuthorityCode. * @param publicAuthorityCode The publicAuthorityCode to set */ public void setPublicAuthorityCode(String publicAuthorityCode) { this.publicAuthorityCode = publicAuthorityCode; } /** * Returns the qualifiedCertificate. * @return boolean */ public boolean isQualifiedCertificate() { return qualifiedCertificate; } /** * Returns the x509certificate. * @return X509Certificate */ public X509Certificate getX509certificate() { return x509certificate; } /** * Sets the qualifiedCertificate. * @param qualifiedCertificate The qualifiedCertificate to set */ public void setQualifiedCertificate(boolean qualifiedCertificate) { this.qualifiedCertificate = qualifiedCertificate; } /** * Sets the x509certificate. * @param x509certificate The x509certificate to set */ public void setX509certificate(X509Certificate x509certificate) { this.x509certificate = x509certificate; } /** * Returns the xmlDSIGManigest. * @return boolean */ public boolean isXmlDSIGManigest() { return xmlDSIGManigest; } /** * Sets the xmlDSIGManigest. * @param xmlDSIGManigest The xmlDSIGManigest to set */ public void setXmlDSIGManigest(boolean xmlDSIGManigest) { this.xmlDSIGManigest = xmlDSIGManigest; } /** * Returns the publicAuthority. * @return boolean */ public boolean isPublicAuthority() { return publicAuthority; } /** * Sets the publicAuthority. * @param publicAuthority The publicAuthority to set */ public void setPublicAuthority(boolean publicAuthority) { this.publicAuthority = publicAuthority; } /** * Returns the the resulting code of the signature manifest check. * * @return The code of the sigature manifest check. */ public int getSignatureManifestCheckCode() { return signatureManifestCheckCode; } /** * Sets the signatureManifestCode. * * @param signatureManifestCheckCode The signatureManifestCode to set. */ public void setSignatureManifestCheckCode(int signatureManifestCheckCode) { this.signatureManifestCheckCode = signatureManifestCheckCode; } public Date getSigningDateTime() { return signingDateTime; } public void setSigningDateTime(Date signingDateTime) { this.signingDateTime = signingDateTime; } }