/** * Certificate.java * * This file was auto-generated from WSDL * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter. */ package org.ejbca.core.protocol.ws; public class Certificate extends org.ejbca.core.protocol.ws.TokenCertificateResponseWS implements java.io.Serializable { private byte[] certificateData; public Certificate() { } public Certificate( org.ejbca.core.protocol.ws.Certificate certificate, org.ejbca.core.protocol.ws.KeyStore keyStore, int type, byte[] certificateData) { super( certificate, keyStore, type); this.certificateData = certificateData; } /** * Gets the certificateData value for this Certificate. * * @return certificateData */ public byte[] getCertificateData() { return certificateData; } /** * Sets the certificateData value for this Certificate. * * @param certificateData */ public void setCertificateData(byte[] certificateData) { this.certificateData = certificateData; } private java.lang.Object __equalsCalc = null; public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof Certificate)) return false; Certificate other = (Certificate) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = super.equals(obj) && ((this.certificateData==null && other.getCertificateData()==null) || (this.certificateData!=null && java.util.Arrays.equals(this.certificateData, other.getCertificateData()))); __equalsCalc = null; return _equals; } private boolean __hashCodeCalc = false; public synchronized int hashCode() { if (__hashCodeCalc) { return 0; } __hashCodeCalc = true; int _hashCode = super.hashCode(); if (getCertificateData() != null) { for (int i=0; i