Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
7711785
Disable Jetty by default. (#4964)
mitchdenny Aug 14, 2019
1b40f3a
Update package groups and add description in pom.xml for client libra…
srnagar Aug 14, 2019
7d24f9a
Event Hubs: Synchronous APIs Part 2 (#4970)
conniey Aug 14, 2019
6768fc9
Split the eventhubs client and data pipelines. (#4995)
mitchdenny Aug 14, 2019
58142d5
Add null check to fix spotbugs warning. (#4998)
conniey Aug 14, 2019
f173ae0
Seeing if we can speed up spotbugs (#4988)
JonathanGiles Aug 14, 2019
1ac4b2b
Enabling javadoc production for template. (#4963)
mitchdenny Aug 15, 2019
d44d8c3
Update link to Java Guidelines. (#4842)
Aug 15, 2019
ca83bd9
Fixes on Check on checkstyle (#5003)
mssfang Aug 15, 2019
99e76b4
Update Storage swagger (#4981)
tg-msft Aug 15, 2019
6eb9e89
Added spock test framework and tests for queue service (#4940)
sima-zhu Aug 15, 2019
2eec622
Fix directory path. (#5012)
mitchdenny Aug 16, 2019
56dc993
Renaming IterableResponse to IterableStream (#5002)
JonathanGiles Aug 16, 2019
faa0ef7
Add tracing context to storage blobs (#4752)
samvaity Aug 16, 2019
6f0f73f
Checkstyle - Javadoc - enforce formating for param, return and throw …
vhvb1989 Aug 16, 2019
0beab53
Fixes URL hosts with path segments (#4917)
jianghaolu Aug 16, 2019
f95da5a
Add staging profile id. (#5025)
mitchdenny Aug 16, 2019
5eab1e6
Adding Gauri Prassad to Storage Code Owner List (#5023)
alzimmermsft Aug 16, 2019
e688eb6
Feature/unified pipeline staging profiles (#5018)
mitchdenny Aug 16, 2019
8d0068d
Check if the first character in the passed SASToken string is a quest…
alzimmermsft Aug 16, 2019
41418b4
Make StorageException a POJO (#4924)
alzimmermsft Aug 16, 2019
bb70bee
Smoke test for Java (#4805)
JonathanCrd Aug 16, 2019
076e0f8
Fix URL construction for Storage (#5027)
jianghaolu Aug 17, 2019
84fa1c4
Use constant ServiceBus audience instead of letting the user provide …
bainian12345 Aug 17, 2019
146e3a8
Major version bump for service bus. (#5029)
mitchdenny Aug 17, 2019
b111ad3
CosmosDB: package 2015-04-08 update. (#5033)
yaohaizh Aug 19, 2019
32b7f60
Okhttp bug fix (#4944)
g2vinay Aug 19, 2019
619c70a
Adding rule to expect a text description for deprecated javadoc tags …
vhvb1989 Aug 19, 2019
6f80595
CheckStyle: regex for suppression and a few fiexes for generated chec…
mssfang Aug 19, 2019
37a35dd
remove cosmosdb/data-plane (#5037)
christopheranderson Aug 19, 2019
3aa5160
Adding rule for enforcing final field usage - DoNotMerge until all is…
vhvb1989 Aug 19, 2019
aceafd6
Update Storage Files swagger to 2019-02-02 (#5028)
tg-msft Aug 19, 2019
fe2039f
CosmosDb: Remove blocking calls from CFP (#4602)
milismsft Aug 20, 2019
608b30f
Cosmos Direct TCP port from azure-cosmosdb v2.6.1 (#5042)
Aug 20, 2019
9884b8a
Custom CheckStyle Rule #9: Thrown exception use ClientLogger (#4566)
mssfang Aug 20, 2019
926de5b
Fix Install Linting Issues (#5057)
alzimmermsft Aug 20, 2019
84dfd55
Add tracing context to storage queue (#4934)
samvaity Aug 20, 2019
4d892df
Storage file service spock tests (#4991)
sima-zhu Aug 20, 2019
8935711
Fix the wrong imports (#5069)
sima-zhu Aug 21, 2019
1713919
Added fake connection string for playback tests. (#5072)
sima-zhu Aug 21, 2019
c0386ae
Bump version. (#5077)
mitchdenny Aug 21, 2019
5583eb0
Remove the Netty dependency from azure-core (#4572)
JonathanGiles Aug 22, 2019
a89afa0
Fix tests (#5080)
sima-zhu Aug 22, 2019
88f4a6f
Remove parent/pom.xml for Event Hubs Track 1 (#5090)
conniey Aug 22, 2019
64efc1b
Add tracing context in Storage Files (#4888)
samvaity Aug 22, 2019
6610afa
Add Impressions tracking link to READMEs (#5035)
g2vinay Aug 22, 2019
1234a3a
Tune management build triggering (#5078)
mitchdenny Aug 22, 2019
025647a
JavaDoc and parameter validation improvements (#5098)
conniey Aug 23, 2019
8bd0f47
Storage: Updated Listing Operation Return Types (#4803)
jaschrep-msft Aug 23, 2019
437afae
Playback and Record for Azure Storage Blob (#4971)
alzimmermsft Aug 23, 2019
e77284a
Update Swagger for Blobs and Files (#5094)
alzimmermsft Aug 23, 2019
ebbfe5a
getHandles to listHandles API changes. (#5055)
sima-zhu Aug 24, 2019
26cbf5a
Network: update package 2019_06_01. (#5095)
yaohaizh Aug 24, 2019
b1f7af5
Setup unified pipelines for sdk/authorization. (#4828)
mitchdenny Aug 26, 2019
c5730d1
Setup sdk/loganalytics for unified pipelines. (#4832)
mitchdenny Aug 26, 2019
416710a
Setup event grid for unified pipelines. (#4831)
mitchdenny Aug 26, 2019
9cee15b
Setup mediaservices for unified pipelines. (#4833)
mitchdenny Aug 26, 2019
5f61d18
Setup AI for unified pipelines. (#4827)
mitchdenny Aug 26, 2019
27cfb8e
Setup unified pipelines for sdk/cognitiveservices (#4830)
mitchdenny Aug 26, 2019
10f0d47
Add azure batch code owners (#4573)
bgklein Aug 26, 2019
3911729
Add Storage to SpotBugs Aggregate Report (#5089)
alzimmermsft Aug 26, 2019
e0f3c5a
Using ISO8601 instead of RFC1123 in response type (#5109)
alzimmermsft Aug 26, 2019
6d300f3
Added clearRange and remove the FileRangeWriteType (#5060)
sima-zhu Aug 26, 2019
9371a88
Fixed logger setup bug in Storage SDK test setup (#5112)
jaschrep-msft Aug 26, 2019
6b14ac0
add more eng entries to CODEOWNERS (#5110)
danieljurek Aug 26, 2019
23aa967
Added core-http-netty to set of artificts to publish. (#5107)
mitchdenny Aug 26, 2019
08fab71
Basic plumbing for pipeline caching. (#5086)
mitchdenny Aug 26, 2019
c1d5a52
Whitespace change to test pipeline config.
mitchdenny Aug 26, 2019
109b1a8
Add suppression for null check. (#5118)
mitchdenny Aug 27, 2019
b6a884d
Add netty library to set of docs generated so it can publish/sign. (#…
mitchdenny Aug 27, 2019
bb2c2bb
Enabling Cosmos for Unified Pipelines (#5102)
mitchdenny Aug 27, 2019
ba8dbc1
Removed azure-core-http-netty from the published artifact list. (#5121)
mitchdenny Aug 27, 2019
f6f89c8
CheckStyleRule-Javadoc-Codesnippet Batch#3, No.7 and No.8 (#4920)
mssfang Aug 27, 2019
e4ebe48
Improve Track 1 Event Hubs RBAC tests (#5133)
JamesBirdsall Aug 27, 2019
ed9d8b6
CustomCheckStyleRules: Good Logging Practice (#3359)
mssfang Aug 27, 2019
6ccb9c6
Remove Storage swagger files and reference azure-rest-api-specs (#5116)
tg-msft Aug 28, 2019
9ccb976
Custom CheckStyle rules: Fluent Method Name Check (#3366)
mssfang Aug 28, 2019
3eda854
Remove suppression and fix error. (#5143)
conniey Aug 28, 2019
d2df860
pom updates (#5151)
g2vinay Aug 28, 2019
b7bf03b
use expected artifact names (#5148)
danieljurek Aug 28, 2019
66fd3cd
Custom CheckStyle: Batch 2, Rule #5 and #10; Batch 3, Rule #1 and #6 …
mssfang Aug 28, 2019
d856608
Adding java automatic module names to all track two client libraries …
JonathanGiles Aug 29, 2019
2da7e73
Generated from 5e1bb35d5c3314d8f4fead76c3d69a2522be026b
Aug 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Checkstyle - Javadoc - enforce formating for param, return and throw …
…literals usage (Azure#4994)

* Adding javaDoc formating rule

* Adding fixes for javadoc formatting
  • Loading branch information
vhvb1989 authored Aug 16, 2019
commit 6f0f73f51af866a92277b709518c2077e6bb49f0
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
// Licensed under the MIT License.
// Copyright (c) Microsoft Corporation. All rights reserved.

package com.azure.tools.checkstyle.checks;

import com.puppycrawl.tools.checkstyle.api.DetailNode;
import com.puppycrawl.tools.checkstyle.api.JavadocTokenTypes;
import com.puppycrawl.tools.checkstyle.checks.javadoc.AbstractJavadocCheck;
import com.puppycrawl.tools.checkstyle.utils.JavadocUtil;

/**
* Description text should only have one space character after the parameter name or {@code @return} statement.
* Text should not start on a new line or have any additional spacing or indentation.
*/
public class JavaDocFormatting extends AbstractJavadocCheck {

private static final String JAVA_DOC_RETURN = "javadoc return";
private static final String JAVA_DOC_PARAMETER = "javadoc parameter";
private static final String JAVA_DOC_THROW = "javadoc throw";

private static final String ERROR_DESCRIPTION_ON_NEW_LINE = "Description for %s must be on same the same line.";
private static final String ERROR_NO_DESCRIPTION = "Description is missing for %s. Consider adding a description.";
private static final String ERROR_NO_WS_AFTER_IDENT = "No white space after %s. Consider fixing format.";
private static final String ERROR_EXTRA_SPACE = "Only one white space is expected after %s. Consider removing extra spaces.";

@Override
public int[] getAcceptableJavadocTokens() {
return getRequiredJavadocTokens();
}

@Override
public int[] getRequiredJavadocTokens() {
return new int[] {
JavadocTokenTypes.PARAMETER_NAME,
JavadocTokenTypes.RETURN_LITERAL,
JavadocTokenTypes.THROWS_LITERAL,
};
}

@Override
public int[] getDefaultJavadocTokens() {
return getRequiredJavadocTokens();
}

@Override
public void visitJavadocToken(DetailNode javaDocTag) {
switch (javaDocTag.getType()) {
case JavadocTokenTypes.RETURN_LITERAL:
evaluateValidFormat(javaDocTag, JAVA_DOC_RETURN);
case JavadocTokenTypes.PARAMETER_NAME:
evaluateValidFormat(javaDocTag, JAVA_DOC_PARAMETER);
break;
case JavadocTokenTypes.THROWS_LITERAL:
// Evaluate what is the format after the CLASS_NAME of a @throw
DetailNode throwFormat = JavadocUtil.getNextSibling(javaDocTag, JavadocTokenTypes.CLASS_NAME);
evaluateValidFormat(throwFormat, JAVA_DOC_THROW);
default:
break;
}
}

/*
* Function receives a DetailNode as the start token and then validates what comes after that node.
* valid format is:
* - A single white space is expected after the node. (no NEW_LINE) or other token
*
*/
private void evaluateValidFormat(DetailNode javaDocTag, String identifier) {
DetailNode nextNodeAfterParameterName = JavadocUtil.getNextSibling(javaDocTag);

if (nextNodeAfterParameterName.getType() == JavadocTokenTypes.NEWLINE) {
if (JavadocUtil.getNextSibling(nextNodeAfterParameterName, JavadocTokenTypes.DESCRIPTION) != null) {
// Description on next line or after some other lines/spaces/staff
log(javaDocTag.getLineNumber(), String.format(ERROR_DESCRIPTION_ON_NEW_LINE, identifier));
} else {
// No description for parameter name
log(javaDocTag.getLineNumber(), String.format(ERROR_NO_DESCRIPTION, identifier));
}
} else if (nextNodeAfterParameterName.getType() != JavadocTokenTypes.WS) {
log(javaDocTag.getLineNumber(), String.format(ERROR_NO_WS_AFTER_IDENT, identifier));
} else if (!nextNodeAfterParameterName.getText().equals(" ")) {
log(javaDocTag.getLineNumber(), String.format(ERROR_EXTRA_SPACE, identifier));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,14 @@
<suppress checks="com.azure.tools.checkstyle.checks.ServiceClientBuilderCheck" files=".*[/\\]src[/\\]test[/\\]java[/\\].*\.java"/>
<suppress checks="com.azure.tools.checkstyle.checks.ServiceInterfaceCheck" files=".*[/\\]src[/\\]test[/\\]java[/\\].*\.java"/>
<suppress checks="com.azure.tools.checkstyle.checks.HttpPipelinePolicyCheck" files=".*[/\\]src[/\\]test[/\\]java[/\\].*\.java"/>
<suppress checks="com.azure.tools.checkstyle.checks.JavaDocFormatting" files=".*[/\\]src[/\\]test[/\\]java[/\\].*\.java"/>

<!-- Custom checkstyle rules that don't apply to files under implementation package -->
<suppress checks="com.azure.tools.checkstyle.checks.ExternalDependencyExposedCheck" files=".*[/\\]implementation[/\\].*\.java"/>
<suppress checks="com.azure.tools.checkstyle.checks.ServiceClientInstantiationCheck" files=".*[/\\]implementation[/\\].*\.java"/>
<suppress checks="com.azure.tools.checkstyle.checks.ServiceClientBuilderCheck" files=".*[/\\]implementation[/\\].*\.java"/>
<suppress checks="com.azure.tools.checkstyle.checks.ServiceInterfaceCheck" files=".*[/\\]implementation[/\\].*\.java"/>
<suppress checks="com.azure.tools.checkstyle.checks.JavaDocFormatting" files=".*[/\\]implementation[/\\].*\.java"/>

<!-- Custom checkstyle rules that don't apply to files under samples package -->
<suppress checks="com.azure.tools.checkstyle.checks.ExternalDependencyExposedCheck" files=".*[/\\]samples[/\\].*\.java"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,11 @@ page at http://checkstyle.sourceforge.net/config.html -->
1) All fields must be final -->
<module name="com.azure.tools.checkstyle.checks.OnlyFinalFieldsForImmutableClassCheck"/>

<!-- CUSTOM CHECKS -->
<!-- Javadoc format: 'param / return / throws' descriptions text should only have one space character after the
parameter name or return -->
<module name="com.azure.tools.checkstyle.checks.JavaDocFormatting"/>

<!--CUSTOM CHECKS-->
<!-- Must use 'logger.logAndThrow' but not directly calling 'throw exception' -->
<!-- <module name="com.azure.tools.checkstyle.checks.ThrownClientLoggerCheck"/>-->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ private static class AzureAsyncOperationPollStrategyData extends PollStrategyDat
* Create a new AzureAsyncOperationPollStrategyData object that will poll the provided operation
* resource URL.
* @param operationResourceUrl The URL of the operation resource this pollStrategy will poll.
* @param originalResourceUrl The URL of the resource that the long running operation is
* @param originalResourceUrl The URL of the resource that the long running operation is
* operating on.
* @param locationUrl The location uri received from service along with operationResourceUrl.
* @param initialHttpMethod The http method used to initiate the long running operation
* @param delayInMilliseconds The delay (in milliseconds) that the pollStrategy will use when
* @param locationUrl The location uri received from service along with operationResourceUrl.
* @param initialHttpMethod The http method used to initiate the long running operation
* @param delayInMilliseconds The delay (in milliseconds) that the pollStrategy will use when
* polling.
*/
AzureAsyncOperationPollStrategyData(RestProxy restProxy, SwaggerMethodParser methodParser, URL operationResourceUrl, URL originalResourceUrl, URL locationUrl, HttpMethod initialHttpMethod, long delayInMilliseconds) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/**
* A container for a generic type. Serves a similar purpose as pointers in C/C++. It's a workaround
* for the fact that Java doesn't allow mutation of local variables in closure.
* @param <T>
* @param <T> The type of the object stored within the {@link Value} instance
*/
public class Value<T> {
private T value;
Expand All @@ -19,7 +19,7 @@ public class Value<T> {

/**
* Create a new Value with the provided inner value.
* @param value
* @param value The type of the object stored within the {@link Value} instance
*/
Value(T value) {
set(value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static Mono<Object> decode(HttpResponse httpResponse, SerializerAdapter serializ
* @param headers the REST API returned headers
* @return instance of header entity type created based on provided {@headers}, if header entity model does
* not exists then return null
* @throws IOException
* @throws IOException If an I/O error occurs
*/
private static Object deserializeHeaders(HttpHeaders headers, SerializerAdapter serializer, HttpResponseDecodeData decodeData) throws IOException {
final Type deserializedHeadersType = decodeData.headersType();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* "items": [{ serialized(T) }, ... ]
* }
* or any other cases where the property names of that type are swapped
* @param <T>
* @param <T> The type of the object stored within the {@link ItemPage} instance
*/
class ItemPage<T> implements Page<T> {
@JsonAlias({"items", "value"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Code snipper for PollResponse
*
* @param <T>
* @param <T> The type of the object stored within the {@link PollResponseJavaDocCodeSnippets} instance
*/


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ public Mono<Void> send(Flux<EventData> events) {
* Sends a set of events to the associated Event Hub using a batched approach. If the size of events exceed the
* maximum size of a single batch, an exception will be triggered and the send will fail. By default, the message
* size is the max amount allowed on the link.
* @param events Events to send to the service.
* @param events Events to send to the service.
* @param options The set of options to consider when sending this batch.
*
* @return A {@link Mono} that completes when all events are pushed to the service.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public abstract class AadCredentialBuilderBase<T extends AadCredentialBuilderBas
/**
* Specifies the Azure Active Directory endpoint to acquire tokens.
* @param authorityHost the Azure Active Directory endpoint
* @return {@link <T>} itself
* @return itself
*/
@SuppressWarnings("unchecked")
public T authorityHost(String authorityHost) {
Expand All @@ -24,7 +24,7 @@ public T authorityHost(String authorityHost) {
/**
* Sets the client ID of the application.
* @param clientId the client ID of the application.
* @return {@link <T>} itself
* @return itself
*/
@SuppressWarnings("unchecked")
public T clientId(String clientId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public abstract class CredentialBuilderBase<T extends CredentialBuilderBase<T>>
/**
* Specifies the max number of retries when an authentication request fails.
* @param maxRetry the number of retries
* @return {@link <T>} itself
* @return itself
*/
@SuppressWarnings("unchecked")
public T maxRetry(int maxRetry) {
Expand All @@ -33,7 +33,7 @@ public T maxRetry(int maxRetry) {
/**
* Specifies a Function to calculate seconds of timeout on every retried request.
* @param retryTimeout the Function that returns a timeout in seconds given the number of retry
* @return {@link <T>} itself
* @return itself
*/
@SuppressWarnings("unchecked")
public T retryTimeout(Function<Integer, Integer> retryTimeout) {
Expand All @@ -44,7 +44,7 @@ public T retryTimeout(Function<Integer, Integer> retryTimeout) {
/**
* Specifies he options for proxy configuration.
* @param proxyOptions the options for proxy configuration
* @return {@link <T>} itself
* @return itself
*/
@SuppressWarnings("unchecked")
public T proxyOptions(ProxyOptions proxyOptions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public final class MSIToken extends AccessToken {
/**
* Creates an access token instance.
*
* @param token the token string.
* @param token the token string.
* @param expiresOn the expiration time.
*/
public MSIToken(String token, OffsetDateTime expiresOn) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@ public Response<DeletedKey> deleteKeyWithResponse(String name, Context context)
* returned in the response.</p>
* //Assuming key is deleted on a soft-delete enabled key vault.
* {@codesnippet com.azure.keyvault.keys.keyclient.getDeletedKey#string}
* </pre>
*
* @param name The name of the deleted key.
* @throws ResourceNotFoundException when a key with {@code name} doesn't exist in the key vault.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ abstract class AsymmetricEncryptionAlgorithm extends LocalEncryptionAlgorithm {

/**
* Constructor.
*
*
* @param name The name of the algorithm.
*/
protected AsymmetricEncryptionAlgorithm(String name) {
Expand All @@ -29,10 +29,10 @@ protected AsymmetricEncryptionAlgorithm(String name) {
* uses the specified {@link KeyPair} and the default {@link Provider} provider.
*
* @param keyPair The key pair to use.
* @return
* @throws InvalidKeyException
* @throws NoSuchAlgorithmException
* @throws NoSuchPaddingException
* @return abstract {@link ICryptoTransform}
* @throws InvalidKeyException when key is not valid
* @throws NoSuchAlgorithmException if algorithm is not found
* @throws NoSuchPaddingException if padding is set wrong
*/
public abstract ICryptoTransform createEncryptor(KeyPair keyPair) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException;

Expand All @@ -42,10 +42,10 @@ protected AsymmetricEncryptionAlgorithm(String name) {
*
* @param keyPair The key pair to use.
* @param provider The provider to use.
* @return
* @throws InvalidKeyException
* @throws NoSuchAlgorithmException
* @throws NoSuchPaddingException
* @return abstract {@link ICryptoTransform}
* @throws InvalidKeyException when key is not valid
* @throws NoSuchAlgorithmException if algorithm is not found
* @throws NoSuchPaddingException if padding is set wrong
*/
public abstract ICryptoTransform createEncryptor(KeyPair keyPair, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException;

Expand All @@ -54,10 +54,10 @@ protected AsymmetricEncryptionAlgorithm(String name) {
* uses the specified {@link KeyPair} and the default {@link Provider} provider.
*
* @param keyPair The key pair to use.
* @return
* @throws InvalidKeyException
* @throws NoSuchAlgorithmException
* @throws NoSuchPaddingException
* @return abstract {@link ICryptoTransform}
* @throws InvalidKeyException when key is not valid
* @throws NoSuchAlgorithmException if algorithm is not found
* @throws NoSuchPaddingException if padding is set wrong
*/
public abstract ICryptoTransform createDecryptor(KeyPair keyPair) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException;

Expand All @@ -67,10 +67,10 @@ protected AsymmetricEncryptionAlgorithm(String name) {
*
* @param keyPair The key pair to use.
* @param provider The provider to use.
* @return
* @throws InvalidKeyException
* @throws NoSuchAlgorithmException
* @throws NoSuchPaddingException
* @return abstract {@link ICryptoTransform}
* @throws InvalidKeyException when key is not valid
* @throws NoSuchAlgorithmException if algorithm is not found
* @throws NoSuchPaddingException if padding is set wrong
*/
public abstract ICryptoTransform createDecryptor(KeyPair keyPair, Provider provider) throws InvalidKeyException, NoSuchAlgorithmException, NoSuchPaddingException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ public enum SignatureAlgorithm {
/**
* Creates a custom value for SignatureAlgorithm.
*
* @param value
* the custom value
* @param value the custom value
*/
SignatureAlgorithm(String value) {
this.value = value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ public void signDataVerifyData() throws NoSuchAlgorithmException {

/**
* Generates a code sample for using {@link CryptographyAsyncClient#wrapKey(KeyWrapAlgorithm, byte[])} and
* {@link CryptographyAsyncClient#unwrapKey(KeyWrapAlgorithm, byte[])
* {@link CryptographyAsyncClient#unwrapKey(KeyWrapAlgorithm, byte[])}
*/
public void wrapKeyUnwrapKey() {
CryptographyAsyncClient cryptographyAsyncClient = createAsyncClient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public void signDataVerifyData() throws NoSuchAlgorithmException {

/**
* Generates a code sample for using {@link CryptographyClient#wrapKey(KeyWrapAlgorithm, byte[])} and
* {@link CryptographyClient#unwrapKey(KeyWrapAlgorithm, byte[])
* {@link CryptographyClient#unwrapKey(KeyWrapAlgorithm, byte[])}
*/
public void wrapKeyUnwrapKey() {
CryptographyClient cryptographyClient = createClient();
Expand Down
Loading