795 @Override public Date getRevocationTime() {
796 return (Date) revocationTime.clone();
797 }
798
799 @Override public CRLReason getRevocationReason() {
800 return revocationReason;
801 }
802
803 @Override
804 public Map<String, java.security.cert.Extension> getSingleExtensions() {
805 return Collections.unmodifiableMap(singleExtensions);
806 }
807
808 /**
809 * Construct a string representation of a single OCSP response.
810 */
811 @Override public String toString() {
812 StringBuilder sb = new StringBuilder();
813 sb.append("SingleResponse: \n");
814 sb.append(certId);
815 sb.append("\nCertStatus: "+ certStatus + "\n");
816 if (certStatus == CertStatus.REVOKED) {
817 sb.append("revocationTime is " + revocationTime + "\n");
818 sb.append("revocationReason is " + revocationReason + "\n");
819 }
820 sb.append("thisUpdate is " + thisUpdate + "\n");
821 if (nextUpdate != null) {
822 sb.append("nextUpdate is " + nextUpdate + "\n");
823 }
824 return sb.toString();
825 }
826 }
827 }
|
795 @Override public Date getRevocationTime() {
796 return (Date) revocationTime.clone();
797 }
798
799 @Override public CRLReason getRevocationReason() {
800 return revocationReason;
801 }
802
803 @Override
804 public Map<String, java.security.cert.Extension> getSingleExtensions() {
805 return Collections.unmodifiableMap(singleExtensions);
806 }
807
808 /**
809 * Construct a string representation of a single OCSP response.
810 */
811 @Override public String toString() {
812 StringBuilder sb = new StringBuilder();
813 sb.append("SingleResponse: \n");
814 sb.append(certId);
815 sb.append("\nCertStatus: ").append(certStatus).append('\n');
816 if (certStatus == CertStatus.REVOKED) {
817 sb.append("revocationTime is ").append(revocationTime).append('\n');
818 sb.append("revocationReason is ").append(revocationReason).append('\n');
819 }
820 sb.append("thisUpdate is ").append(thisUpdate).append('\n');
821 if (nextUpdate != null) {
822 sb.append("nextUpdate is ").append(nextUpdate).append('\n');
823 }
824 return sb.toString();
825 }
826 }
827 }
|