public void init(Certificate cert){
  try {
    if (signature != null) {
      signature.initVerify(cert);
    }
 else     if (cipher != null) {
      cipher.init(Cipher.DECRYPT_MODE,cert);
    }
  }
 catch (  InvalidKeyException e) {
    throw new AlertException(AlertProtocol.BAD_CERTIFICATE,new SSLException("init - invalid certificate",e));
  }
}

public void init ( Certificate cert ) { try { if ( signature != null ) { signature . initVerify ( cert ) ; } else if ( cipher != null ) { cipher . init ( Cipher . DECRYPT_MODE , cert ) ; } } catch ( InvalidKeyException e ) { throw new AlertException ( AlertProtocol . BAD_CERTIFICATE , new SSLException ( "init - invalid certificate" , e ) ) ; } }
initiate signature type by certificate
