1 18 19 package org.apache.activemq.transport.tcp; 20 21 import java.math.BigInteger ; 22 import java.security.Principal ; 23 import java.security.PublicKey ; 24 import java.util.Date ; 25 import java.util.Set ; 26 27 import java.security.cert.X509Certificate ; 28 29 public class StubX509Certificate extends X509Certificate { 30 public StubX509Certificate(Principal id) { 31 this.id = id; 32 } 33 34 public Principal getSubjectDN() { 35 return this.id; 36 } 37 38 private final Principal id; 39 40 public void checkValidity() { 42 44 } 45 46 public void checkValidity(Date arg0) { 47 49 } 50 51 public int getVersion() { 52 return 0; 54 } 55 56 public BigInteger getSerialNumber() { 57 return null; 59 } 60 61 public Principal getIssuerDN() { 62 return null; 64 } 65 66 public Date getNotBefore() { 67 return null; 69 } 70 71 public Date getNotAfter() { 72 return null; 74 } 75 76 public byte[] getTBSCertificate() { 77 return null; 79 } 80 81 public byte[] getSignature() { 82 return null; 84 } 85 86 public String getSigAlgName() { 87 return null; 89 } 90 91 public String getSigAlgOID() { 92 return null; 94 } 95 96 public byte[] getSigAlgParams() { 97 return null; 99 } 100 101 public boolean[] getIssuerUniqueID() { 102 return null; 104 } 105 106 public boolean[] getSubjectUniqueID() { 107 return null; 109 } 110 111 public boolean[] getKeyUsage() { 112 return null; 114 } 115 116 public int getBasicConstraints() { 117 return 0; 119 } 120 121 public byte[] getEncoded() { 122 return null; 124 } 125 126 public void verify(PublicKey arg0) { 127 129 } 130 131 public void verify(PublicKey arg0, String arg1) { 132 134 } 135 136 public String toString() { 137 return null; 139 } 140 141 public PublicKey getPublicKey() { 142 return null; 144 } 145 146 public boolean hasUnsupportedCriticalExtension() { 147 return false; 149 } 150 151 public Set getCriticalExtensionOIDs() { 152 return null; 154 } 155 156 public Set getNonCriticalExtensionOIDs() { 157 return null; 159 } 160 161 public byte[] getExtensionValue(String arg0) { 162 return null; 164 } 165 166 } 167 | Popular Tags |