Skip to content

Commit 9f513f6

Browse files
author
dzmitry.kachkou
committed
Fix javadocs warning
DEVSIX-5048 Autoported commit. Original commit hash: [d647931aa]
1 parent ad71ba6 commit 9f513f6

File tree

6 files changed

+35
-10
lines changed

6 files changed

+35
-10
lines changed

itext/itext.sign/itext/signatures/OCSPVerifier.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ public OCSPVerifier(CertificateVerifier verifier, IList<BasicOcspResp> ocsps)
7474
this.ocsps = ocsps;
7575
}
7676

77-
/// <summary>Verifies if a a valid OCSP response is found for the certificate.</summary>
77+
/// <summary>Verifies if a valid OCSP response is found for the certificate.</summary>
7878
/// <remarks>
79-
/// Verifies if a a valid OCSP response is found for the certificate.
79+
/// Verifies if a valid OCSP response is found for the certificate.
8080
/// If this method returns false, it doesn't mean the certificate isn't valid.
8181
/// It means we couldn't verify it against any OCSP response that was available.
8282
/// </remarks>

itext/itext.sign/itext/signatures/OcspClientBouncyCastle.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public OcspClientBouncyCastle(OCSPVerifier verifier) {
7878
/// <param name="checkCert">to certificate to check</param>
7979
/// <param name="rootCert">the parent certificate</param>
8080
/// <param name="url">to get the verification</param>
81+
/// <returns>OCSP response</returns>
8182
public virtual BasicOcspResp GetBasicOCSPResp(X509Certificate checkCert, X509Certificate rootCert, String
8283
url) {
8384
try {

itext/itext.sign/itext/signatures/PdfSignatureAppearance.cs

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ public virtual int GetPageNumber() {
194194
/// The page number of the signature field which
195195
/// this signature appearance is associated with.
196196
/// </param>
197+
/// <returns>this instance to support fluent interface</returns>
197198
public virtual iText.Signatures.PdfSignatureAppearance SetPageNumber(int pageNumber) {
198199
this.page = pageNumber;
199200
SetPageRect(pageRect);
@@ -220,6 +221,7 @@ public virtual Rectangle GetPageRect() {
220221
/// The rectangle that represents the position and
221222
/// dimension of the signature field in the page.
222223
/// </param>
224+
/// <returns>this instance to support fluent interface</returns>
223225
public virtual iText.Signatures.PdfSignatureAppearance SetPageRect(Rectangle pageRect) {
224226
this.pageRect = new Rectangle(pageRect);
225227
this.rect = new Rectangle(pageRect.GetWidth(), pageRect.GetHeight());
@@ -254,6 +256,7 @@ public virtual PdfSignatureAppearance.RenderingMode GetRenderingMode() {
254256

255257
/// <summary>Sets the rendering mode for this signature.</summary>
256258
/// <param name="renderingMode">the rendering mode</param>
259+
/// <returns>this instance to support fluent interface</returns>
257260
public virtual iText.Signatures.PdfSignatureAppearance SetRenderingMode(PdfSignatureAppearance.RenderingMode
258261
renderingMode) {
259262
this.renderingMode = renderingMode;
@@ -268,13 +271,15 @@ public virtual String GetReason() {
268271

269272
/// <summary>Sets the signing reason.</summary>
270273
/// <param name="reason">signing reason.</param>
274+
/// <returns>this instance to support fluent interface</returns>
271275
public virtual iText.Signatures.PdfSignatureAppearance SetReason(String reason) {
272276
this.reason = reason;
273277
return this;
274278
}
275279

276280
/// <summary>Sets the caption for the signing reason.</summary>
277281
/// <param name="reasonCaption">A new signing reason caption</param>
282+
/// <returns>this instance to support fluent interface</returns>
278283
public virtual iText.Signatures.PdfSignatureAppearance SetReasonCaption(String reasonCaption) {
279284
this.reasonCaption = reasonCaption;
280285
return this;
@@ -288,13 +293,15 @@ public virtual String GetLocation() {
288293

289294
/// <summary>Sets the signing location.</summary>
290295
/// <param name="location">A new signing location</param>
296+
/// <returns>this instance to support fluent interface</returns>
291297
public virtual iText.Signatures.PdfSignatureAppearance SetLocation(String location) {
292298
this.location = location;
293299
return this;
294300
}
295301

296302
/// <summary>Sets the caption for the signing location.</summary>
297303
/// <param name="locationCaption">A new signing location caption</param>
304+
/// <returns>this instance to support fluent interface</returns>
298305
public virtual iText.Signatures.PdfSignatureAppearance SetLocationCaption(String locationCaption) {
299306
this.locationCaption = locationCaption;
300307
return this;
@@ -308,6 +315,7 @@ public virtual String GetSignatureCreator() {
308315

309316
/// <summary>Sets the name of the application used to create the signature.</summary>
310317
/// <param name="signatureCreator">A new name of the application signing a document</param>
318+
/// <returns>this instance to support fluent interface</returns>
311319
public virtual iText.Signatures.PdfSignatureAppearance SetSignatureCreator(String signatureCreator) {
312320
this.signatureCreator = signatureCreator;
313321
return this;
@@ -321,6 +329,7 @@ public virtual String GetContact() {
321329

322330
/// <summary>Sets the signing contact.</summary>
323331
/// <param name="contact">A new signing contact</param>
332+
/// <returns>this instance to support fluent interface</returns>
324333
public virtual iText.Signatures.PdfSignatureAppearance SetContact(String contact) {
325334
this.contact = contact;
326335
return this;
@@ -332,6 +341,7 @@ public virtual iText.Signatures.PdfSignatureAppearance SetContact(String contact
332341
/// This certificate doesn't take part in the actual signing process.
333342
/// </remarks>
334343
/// <param name="signCertificate">the certificate</param>
344+
/// <returns>this instance to support fluent interface</returns>
335345
public virtual iText.Signatures.PdfSignatureAppearance SetCertificate(X509Certificate signCertificate) {
336346
this.signCertificate = signCertificate;
337347
return this;
@@ -352,13 +362,15 @@ public virtual ImageData GetSignatureGraphic() {
352362
/// <summary>Sets the Image object to render when Render is set to RenderingMode.GRAPHIC or RenderingMode.GRAPHIC_AND_DESCRIPTION.
353363
/// </summary>
354364
/// <param name="signatureGraphic">image rendered. If null the mode is defaulted to RenderingMode.DESCRIPTION</param>
365+
/// <returns>this instance to support fluent interface</returns>
355366
public virtual iText.Signatures.PdfSignatureAppearance SetSignatureGraphic(ImageData signatureGraphic) {
356367
this.signatureGraphic = signatureGraphic;
357368
return this;
358369
}
359370

360371
/// <summary>Indicates that the existing appearances needs to be reused as layer 0.</summary>
361-
/// <param name="reuseAppearance"/>
372+
/// <param name="reuseAppearance">is an appearances reusing flag value to set</param>
373+
/// <returns>this instance to support fluent interface</returns>
362374
public virtual iText.Signatures.PdfSignatureAppearance SetReuseAppearance(bool reuseAppearance) {
363375
this.reuseAppearance = reuseAppearance;
364376
return this;
@@ -373,6 +385,7 @@ public virtual ImageData GetImage() {
373385

374386
/// <summary>Sets the background image for the layer 2.</summary>
375387
/// <param name="image">the background image for the layer 2</param>
388+
/// <returns>this instance to support fluent interface</returns>
376389
public virtual iText.Signatures.PdfSignatureAppearance SetImage(ImageData image) {
377390
this.image = image;
378391
return this;
@@ -392,6 +405,7 @@ public virtual float GetImageScale() {
392405
/// In any of the cases the image will always be centered. It's zero by default.
393406
/// </remarks>
394407
/// <param name="imageScale">the scaling to be applied to the background image</param>
408+
/// <returns>this instance to support fluent interface</returns>
395409
public virtual iText.Signatures.PdfSignatureAppearance SetImageScale(float imageScale) {
396410
this.imageScale = imageScale;
397411
return this;
@@ -402,6 +416,7 @@ public virtual iText.Signatures.PdfSignatureAppearance SetImageScale(float image
402416
/// the signature text identifying the signer. If null or not set
403417
/// a standard description will be used
404418
/// </param>
419+
/// <returns>this instance to support fluent interface</returns>
405420
public virtual iText.Signatures.PdfSignatureAppearance SetLayer2Text(String text) {
406421
layer2Text = text;
407422
return this;
@@ -422,13 +437,15 @@ public virtual PdfFont GetLayer2Font() {
422437
/// <summary>Sets the n2 and n4 layer font.</summary>
423438
/// <remarks>Sets the n2 and n4 layer font. If the font size is zero, auto-fit will be used.</remarks>
424439
/// <param name="layer2Font">the n2 and n4 font</param>
440+
/// <returns>this instance to support fluent interface</returns>
425441
public virtual iText.Signatures.PdfSignatureAppearance SetLayer2Font(PdfFont layer2Font) {
426442
this.layer2Font = layer2Font;
427443
return this;
428444
}
429445

430446
/// <summary>Sets the n2 and n4 layer font size.</summary>
431447
/// <param name="fontSize">font size</param>
448+
/// <returns>this instance to support fluent interface</returns>
432449
public virtual iText.Signatures.PdfSignatureAppearance SetLayer2FontSize(float fontSize) {
433450
this.layer2FontSize = fontSize;
434451
return this;
@@ -442,6 +459,7 @@ public virtual float GetLayer2FontSize() {
442459

443460
/// <summary>Sets the n2 and n4 layer font color.</summary>
444461
/// <param name="color">font color</param>
462+
/// <returns>this instance to support fluent interface</returns>
445463
public virtual iText.Signatures.PdfSignatureAppearance SetLayer2FontColor(Color color) {
446464
this.layer2FontColor = color;
447465
return this;
@@ -460,9 +478,9 @@ public virtual bool IsInvisible() {
460478
}
461479

462480
/// <summary>Constructs appearance (top-level) for a signature.</summary>
463-
/// <seealso><a href="http://partners.adobe.com/asn/developer/pdfs/tn/ppkappearances.pdf">PPKAppearances.pdf</a> for further details
464-
/// </seealso>
465481
/// <returns>a top-level signature appearance</returns>
482+
/// <seealso><a href="https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/ppkappearances.pdf">
483+
/// * Adobe Pdf Digital Signature Appearances</a> for further details</seealso>
466484
protected internal virtual PdfFormXObject GetAppearance() {
467485
PdfCanvas canvas;
468486
if (IsInvisible()) {
@@ -688,13 +706,15 @@ protected internal virtual DateTime GetSignDate() {
688706

689707
/// <summary>Sets the signature date.</summary>
690708
/// <param name="signDate">A new signature date</param>
709+
/// <returns>this instance to support fluent interface</returns>
691710
protected internal virtual iText.Signatures.PdfSignatureAppearance SetSignDate(DateTime signDate) {
692711
this.signDate = signDate;
693712
return this;
694713
}
695714

696715
/// <summary>Set the field name of the appearance.</summary>
697716
/// <param name="fieldName">name of the field</param>
717+
/// <returns>this instance to support fluent interface</returns>
698718
protected internal virtual iText.Signatures.PdfSignatureAppearance SetFieldName(String fieldName) {
699719
this.fieldName = fieldName;
700720
return this;

itext/itext.sign/itext/signatures/TSAClientBouncyCastle.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,10 +117,11 @@ public TSAClientBouncyCastle(String url, String username, String password)
117117
/// size is not likely to change (as long as we call the same TSA using
118118
/// the same imprint length).
119119
/// </remarks>
120-
/// <param name="url">String - Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")</param>
121-
/// <param name="username">String - user(account) name</param>
122-
/// <param name="password">String - password</param>
123-
/// <param name="tokSzEstimate">int - estimated size of received time stamp token (DER encoded)</param>
120+
/// <param name="url">Time Stamp Authority URL (i.e. "http://tsatest1.digistamp.com/TSA")</param>
121+
/// <param name="username">user(account) name</param>
122+
/// <param name="password">password</param>
123+
/// <param name="tokSzEstimate">estimated size of received time stamp token (DER encoded)</param>
124+
/// <param name="digestAlgorithm">is a hash algorithm</param>
124125
public TSAClientBouncyCastle(String url, String username, String password, int tokSzEstimate, String digestAlgorithm
125126
) {
126127
this.tsaURL = url;
@@ -216,6 +217,7 @@ public virtual byte[] GetTimeStampToken(byte[] imprint) {
216217
}
217218

218219
/// <summary>Get timestamp token - communications layer</summary>
220+
/// <param name="requestBytes">is a byte representation of TSA request</param>
219221
/// <returns>- byte[] - TSA response, raw bytes (RFC 3161 encoded)</returns>
220222
protected internal virtual byte[] GetTSAResponse(byte[] requestBytes) {
221223
// Setup the TSA connection

itext/itext.sign/itext/signatures/VerificationException.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ namespace iText.Signatures {
5050
/// <summary>An exception that is thrown when something is wrong with a certificate.</summary>
5151
public class VerificationException : GeneralSecurityException {
5252
/// <summary>Creates a VerificationException</summary>
53+
/// <param name="cert">is a failed certificate</param>
54+
/// <param name="message">is a reason of failure</param>
5355
public VerificationException(X509Certificate cert, String message)
5456
: base(MessageFormatUtil.Format("Certificate {0} failed: {1}", cert == null ? "Unknown" : ((X509Certificate
5557
)cert).SubjectDN.ToString(), message)) {

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
a7e841cb148776a804ab87530a76cecc1632bc5e
1+
d647931aa9e55f67c09088e6cdb898c1b6dcb77b

0 commit comments

Comments
 (0)