private XiContentSigner createRSAContentSigner(AlgorithmIdentifier signatureAlgId) throws XiSecurityException, P11TokenException { if (PKCSObjectIdentifiers.id_RSASSA_PSS.equals(signatureAlgId.getAlgorithm())) { return new P11ContentSigner.RSAPSS(cryptService, identityId, signatureAlgId, securityFactory.getRandom4Sign()); } else { return new P11ContentSigner.RSA(cryptService, identityId, signatureAlgId); } }
private XiContentSigner createRSAContentSigner(AlgorithmIdentifier signatureAlgId) throws XiSecurityException, P11TokenException { if (PKCSObjectIdentifiers.id_RSASSA_PSS.equals(signatureAlgId.getAlgorithm())) { return new P11RSAPSSContentSigner(cryptService, identityId, signatureAlgId, securityFactory.getRandom4Sign()); } else { return new P11RSAContentSigner(cryptService, identityId, signatureAlgId); } }
private XiContentSigner createRSAContentSigner(AlgorithmIdentifier signatureAlgId) throws XiSecurityException, P11TokenException { if (PKCSObjectIdentifiers.id_RSASSA_PSS.equals(signatureAlgId.getAlgorithm())) { return new P11RSAPSSContentSigner(cryptService, identityId, signatureAlgId, securityFactory.getRandom4Sign()); } else { return new P11RSAContentSigner(cryptService, identityId, signatureAlgId); } }
securityFactory.getRandom4Sign()); } else { SoftTokenContentSignerBuilder signerBuilder = new SoftTokenContentSignerBuilder( securityFactory.getRandom4Sign());
type, keystoreStream, password, keyLabel, password); return signerBuilder.createSigner(macAlgId, parallelism, securityFactory.getRandom4Sign()); } else { P12ContentSignerBuilder signerBuilder = new P12ContentSignerBuilder( securityFactory.getRandom4Sign());