(メッセージはありません)
@@ -143,7 +143,8 @@ | ||
143 | 143 | @Override |
144 | 144 | public String[] getClientAliases(String keyType, Principal[] issuers) |
145 | 145 | { |
146 | - throw new UnsupportedOperationException("Not implemented"); | |
146 | + // KeyStore内の全エイリアスを返す | |
147 | + return this.aliases; | |
147 | 148 | } |
148 | 149 | |
149 | 150 | @Override |
@@ -150,7 +151,11 @@ | ||
150 | 151 | public String chooseClientAlias(String[] keyType, Principal[] issuers, |
151 | 152 | Socket socket) |
152 | 153 | { |
153 | - // Not supported. | |
154 | + // 先頭のエイリアスを返す | |
155 | + if (this.aliases.length > 0) | |
156 | + { | |
157 | + return aliases[0]; | |
158 | + } | |
154 | 159 | return null; |
155 | 160 | } |
156 | 161 |
@@ -403,6 +403,9 @@ | ||
403 | 403 | */ |
404 | 404 | void doHandshake() throws IOException |
405 | 405 | { |
406 | + if (handshakeException != null) | |
407 | + throw handshakeException; | |
408 | + | |
406 | 409 | synchronized (engine) |
407 | 410 | { |
408 | 411 | if (isHandshaking) |