public static HashAlgo detectOcspDbCerthashAlgo(DataSourceWrapper datasource) throws DataAccessException { String str = datasource.getFirstValue(null, "DBSCHEMA", "VALUE2", "NAME='CERTHASH_ALGO'", String.class); return HashAlgo.getNonNullInstance(str); }
public static HashAlgo detectOcspDbCerthashAlgo(DataSourceWrapper datasource) throws DataAccessException { String str = datasource.getFirstValue(null, "DBSCHEMA", "VALUE2", "NAME='CERTHASH_ALGO'", String.class); return HashAlgo.getNonNullInstance(str); }
private HashAlgo getCertHashAlgo(DataSourceWrapper datasource) throws DataAccessException { String certHashAlgoStr = dbSchemaInfo.getVariableValue("CERTHASH_ALGO"); if (certHashAlgoStr == null) { throw new DataAccessException( "Column with NAME='CERTHASH_ALGO' is not defined in table DBSCHEMA"); } return HashAlgo.getNonNullInstance(certHashAlgoStr); }
private HashAlgo getCertHashAlgo(DataSourceWrapper datasource) throws DataAccessException { String certHashAlgoStr = dbSchemaInfo.getVariableValue("CERTHASH_ALGO"); if (certHashAlgoStr == null) { throw new DataAccessException( "Column with NAME='CERTHASH_ALGO' is not defined in table DBSCHEMA"); } return HashAlgo.getNonNullInstance(certHashAlgoStr); }
PbmMacCmpResponder(X500Name x500Name, List<String> owfs, List<String> macs) { super(x500Name); this.owfAlgos = new ArrayList<>(owfs.size()); for (int i = 0; i < owfs.size(); i++) { String algo = owfs.get(i); HashAlgo ha; try { ha = HashAlgo.getNonNullInstance(algo); } catch (Exception ex) { throw new IllegalArgumentException("invalid owf " + algo, ex); } owfAlgos.add(ha.getOid()); } this.macAlgos = new ArrayList<>(macs.size()); for (int i = 0; i < macs.size(); i++) { String algo = macs.get(i); AlgorithmIdentifier algId; try { algId = AlgorithmUtil.getMacAlgId(algo); } catch (NoSuchAlgorithmException ex) { throw new IllegalArgumentException("invalid mac" + algo, ex); } macAlgos.add(algId.getAlgorithm()); } }
this.certhashAlgo = HashAlgo.getNonNullInstance(str);
HashAlgo ha; try { ha = HashAlgo.getNonNullInstance(algo); } catch (Exception ex) { throw new InvalidConfException("invalid pbmPwf " + algo, ex);
HashAlgo ha; try { ha = HashAlgo.getNonNullInstance(algo); } catch (Exception ex) { throw new InvalidConfException("invalid pbmPwf " + algo, ex);
HashAlgo.getNonNullInstance(options.getHashAlgorithmId()), Certificate.getInstance(issuerCert.getEncoded())); OCSPResp response;
HashAlgo.getNonNullInstance(options.getHashAlgorithmId()), Certificate.getInstance(issuerCert.getEncoded())); OCSPResp response;
HashAlgo hashAlgo = HashAlgo.getNonNullInstance(certId.getHashAlgOID()); boolean issuerMatch = issuerHash.match(hashAlgo, certId.getIssuerNameHash(), certId.getIssuerKeyHash());
HashAlgo hashAlgo = HashAlgo.getNonNullInstance(certId.getHashAlgOID()); boolean issuerMatch = issuerHash.match(hashAlgo, certId.getIssuerNameHash(), certId.getIssuerKeyHash());
CmpClientConf.Requestor.PbmMac cf = requestorConf.getPbmMac(); X500Name x500name = new X500Name(cf.getSender()); AlgorithmIdentifier owf = HashAlgo.getNonNullInstance(cf.getOwf()).getAlgorithmIdentifier(); AlgorithmIdentifier mac; try {