1 package com.atlassian.security.auth.trustedapps.filter;
2
3 import java.io.IOException;
4 import java.io.Writer;
5
6
7
8
9 public class MockCertificateServer implements TrustedApplicationsFilter.CertificateServer
10 {
11 private String certificate;
12
13 public void writeCertificate(Writer writer) throws IOException
14 {
15 if (certificate != null)
16 {
17 writer.write(certificate);
18 }
19 }
20
21 public String getCertificate()
22 {
23 return certificate;
24 }
25
26 public void setCertificate(String certificate)
27 {
28 this.certificate = certificate;
29 }
30 }