@Override protected void checkParameters(X509Certificate respIssuer, List<BigInteger> serialNumbers, Map<BigInteger, byte[]> encodedCerts) throws Exception { Args.notEmpty(serialNumbers, "serialNunmbers"); }
public EnrollCertResult(Certificate caCert, Map<String, CertifiedKeyPairOrError> certsOrErrors) { this.certsOrErrors = Args.notEmpty(certsOrErrors, "certsOrErrors"); this.caCert = caCert; }
public ServerCaps(boolean readOnly, Set<Short> versions) { this.readOnly = readOnly; this.versions = Collections.unmodifiableSet(Args.notEmpty(versions, "versions")); }
public SubjectControl(List<RdnControl> controls, boolean keepRdnOrder) { Args.notEmpty(controls, "controls"); this.typeGroups = new HashMap<>();
public DfltConcurrentContentSigner(boolean mac, List<XiContentSigner> signers, Key signingKey) throws NoSuchAlgorithmException { Args.notEmpty(signers, "signers"); this.mac = mac; AlgorithmIdentifier algorithmIdentifier = signers.get(0).getAlgorithmIdentifier(); this.algorithmName = AlgorithmUtil.getSigOrMacAlgoName(algorithmIdentifier); this.algorithmCode = AlgorithmUtil.getSigOrMacAlgoCode(algorithmIdentifier); for (XiContentSigner signer : signers) { this.signers.add(new ConcurrentBagEntrySigner(signer)); } this.signingKey = signingKey; this.name = "defaultSigner-" + NAME_INDEX.getAndIncrement(); }
CertRepublisher(NameId ca, X509Cert caCert, CaIdNameMap caIdNameMap, CertStore certstore, List<IdentifiedCertPublisher> publishers, boolean onlyRevokedCerts, int numThreads) { this.ca = Args.notNull(ca, "ca"); this.caCert = Args.notNull(caCert, "caCert"); this.caIdNameMap = Args.notNull(caIdNameMap, "caIdNameMap"); this.certstore = Args.notNull(certstore, "certstore"); this.publishers = Args.notEmpty(publishers, "publishers"); this.onlyRevokedCerts = onlyRevokedCerts; this.numThreads = Args.positive(numThreads, "numThreads"); }
public static CRLDistPoint createCrlDistributionPoints(List<String> crlUris, X500Name caSubject, X500Name crlSignerSubject) { Args.notEmpty(crlUris, "crlUris"); int size = crlUris.size(); DistributionPoint[] points = new DistributionPoint[1]; GeneralName[] names = new GeneralName[size]; for (int i = 0; i < size; i++) { names[i] = new GeneralName(GeneralName.uniformResourceIdentifier, crlUris.get(i)); } // Distribution Point GeneralNames gns = new GeneralNames(names); DistributionPointName pointName = new DistributionPointName(gns); GeneralNames crlIssuer = null; if (crlSignerSubject != null && !crlSignerSubject.equals(caSubject)) { GeneralName crlIssuerName = new GeneralName(crlSignerSubject); crlIssuer = new GeneralNames(crlIssuerName); } points[0] = new DistributionPoint(pointName, null, crlIssuer); return new CRLDistPoint(points); }
private List<CertificateInfo> generateCerts(List<CertTemplateData> certTemplates, RequestorInfo requestor, boolean update, RequestType reqType, byte[] transactionId, String msgId) throws OperationExceptionWithIndex { Args.notEmpty(certTemplates, "certTemplates"); final int n = certTemplates.size(); List<GrantedCertTemplate> gcts = new ArrayList<>(n);
public P11ModuleConf(Pkcs11conf.Module moduleType, List<Pkcs11conf.MechanismSet> mechanismSets, PasswordResolver passwordResolver) throws InvalidConfException { Args.notNull(moduleType, "moduleType"); Args.notEmpty(mechanismSets, "mechanismSets"); this.name = moduleType.getName(); this.readOnly = moduleType.isReadonly();