List of usage examples for org.bouncycastle.jcajce.provider.util DigestFactory getOID
public static ASN1ObjectIdentifier getOID(String digestName)
From source file:com.github.beat.signer.pdf_signer.TSAClient.java
License:Apache License
private ASN1ObjectIdentifier getHashObjectIdentifier(String algorithm) { return DigestFactory.getOID(algorithm); }
From source file:org.jnotary.service.util.ServiceConfig.java
License:Open Source License
public void load(Configuration configuration) throws IOException { signerAlgorithm = configuration.getSignatureAlgorithm(); hashAlgorithm = DigestFactory.getOID(configuration.getHashAlgorithm()); verifyCRL = configuration.getVerifyCRL(); addSignCertificate = configuration.getAddSertificateToSignature(); allowedServices = new ArrayList<Boolean>(4); //Beachten die Reihenfolge!!! allowedServices.add(configuration.getCpdAllowed()); allowedServices.add(configuration.getVsdAllowed()); allowedServices.add(configuration.getVpkcAllowed()); allowedServices.add(configuration.getCcpdAllowed()); }