1 20 21 package org.jacorb.security.ssl.iaik; 22 23 import iaik.security.ssl.*; 24 import java.security.cert.X509Certificate ; 25 26 30 31 public class ServerChainVerifier 32 extends ChainVerifier 33 { 34 private boolean require_client_auth = false; 35 36 public ServerChainVerifier( boolean require_client_auth ) 37 { 38 super(); 39 40 this.require_client_auth = require_client_auth; 41 } 42 43 public ServerChainVerifier( int k ) 44 { 45 super( k ); 46 } 47 48 public boolean verifyChain( X509Certificate [] chain, 49 SSLTransport transport ) 50 { 51 if( require_client_auth && (chain == null) ) 52 { 53 return false; 54 } 55 56 return super.verifyChain( chain, transport ); 57 } 58 } 60 61 | Popular Tags |