Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
5f15e99
Add spotless plugin and fix grammar issues
thboileau Mar 29, 2026
3057ef0
Add spotless plugin and fix grammar issues
thboileau Mar 29, 2026
1c380f1
Add spotless plugin and fix grammar issues
thboileau Mar 29, 2026
6d3e409
Add spotless plugin and fix grammar issues
thboileau Mar 29, 2026
27dd767
Take into account Sonar comments
thboileau Apr 3, 2026
8932451
Take into account Sonar comments
thboileau Apr 3, 2026
59e7f91
Take into account Sonar comments
thboileau Apr 3, 2026
5418c68
Take into account Sonar comments
thboileau Apr 4, 2026
81e97c5
Take into account Sonar comments
thboileau Apr 4, 2026
a519448
Take into account Sonar comments
thboileau Apr 4, 2026
5f36792
Take into account Sonar comments
thboileau Apr 4, 2026
d97460a
Take into account Sonar comments
thboileau Apr 4, 2026
9385d4b
Take into account Sonar comments
thboileau Apr 4, 2026
4ac83c6
Take into account Sonar comments
thboileau Apr 4, 2026
7721dcd
Take into account Sonar comments
thboileau Apr 4, 2026
4df358b
Take into account Sonar comments
thboileau Apr 4, 2026
90de15d
Take into account Sonar comments
thboileau Apr 4, 2026
f4aa083
Take into account Sonar comments
thboileau Apr 5, 2026
20161a7
Take into account Sonar comments
thboileau Apr 5, 2026
9a32fcf
Take into account Sonar comments
thboileau Apr 5, 2026
ef671f7
Take into account Sonar comments
thboileau Apr 5, 2026
d972854
Take into account Sonar comments
thboileau Apr 5, 2026
93ff816
Take into account Sonar comments
thboileau Apr 5, 2026
1f539f6
Take into account Sonar comments
thboileau Apr 5, 2026
daa4346
Take into account Sonar comments
thboileau Apr 5, 2026
af72a42
Take into account Sonar comments
thboileau Apr 6, 2026
e9cd1de
Take into account Sonar comments
thboileau Apr 6, 2026
9c125fe
Take into account Sonar comments
thboileau Apr 7, 2026
142c9b5
Taken into account PR review comment
Apr 7, 2026
03c15f8
Taken into account PR review comment
Apr 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion copyright.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Copyright notice

Version 5.0, October 2024

Copyright 2005-2024 Qlik
Copyright 2005-2026 Qlik

The contents of this open source project are subject to the terms of the Apache 2.0 open
source license available at http://www.opensource.org/licenses/apache-2.0
Expand Down
2 changes: 1 addition & 1 deletion mvnw

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mvnw.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/**
* Copyright 2005-2024 Qlik
*
* The contents of this file is subject to the terms of the Apache 2.0 open
* source license available at http://www.opensource.org/licenses/apache-2.0
*
* Copyright 2005-2026 Qlik
*<p>
* The content of this file is subject to the terms of the Apache 2.0 open
* source license available at https://www.opensource.org/licenses/apache-2.0
*<p>
* Restlet is a registered trademark of QlikTech International AB.
*/

package org.restlet.ext.crypto;

import org.restlet.Context;
Expand All @@ -18,58 +17,47 @@

/**
* Authenticator supporting the {@link ChallengeScheme#HTTP_AWS_S3} scheme.
*
*
* @author Jean-Philippe Steinmetz <caskater47@gmail.com>
*/
public class AwsAuthenticator extends ChallengeAuthenticator {
/**
* Creates a new HttpAwsS3Authenticator instance.
*
* @param context
* The context
* @param optional
* Indicates if the authentication success is optional
* @param realm
* The authentication realm
*
* @param context The context
* @param optional Indicates if the authentication success is optional
* @param realm The authentication realm
*/
public AwsAuthenticator(Context context, boolean optional, String realm) {
this(context, optional, realm, new AwsVerifier(null));
}

/**
* Creates a new HttpAwsS3Authenticator instance.
*
* @param context
* The context
* @param optional
* Indicates if the authentication success is optional
* @param realm
* The authentication realm
*
* @param context The context
* @param optional Indicates if the authentication success is optional
* @param realm The authentication realm
* @param verifier
*/
public AwsAuthenticator(Context context, boolean optional, String realm,
Verifier verifier) {
public AwsAuthenticator(Context context, boolean optional, String realm, Verifier verifier) {
super(context, optional, ChallengeScheme.HTTP_AWS_S3, realm, verifier);
}

/**
* Creates a new HttpAwsS3Authenticator instance.
*
* @param context
* The context
* @param realm
* The authentication realm
*
* @param context The context
* @param realm The authentication realm
*/
public AwsAuthenticator(Context context, String realm) {
this(context, false, realm);
}

/**
* Returns the maximum age of a request, in milliseconds, before it is
* considered stale.
* <p>
* A negative or zero value indicates no age restriction. The default value
* is 15 minutes.
* Returns the maximum age of a request, in milliseconds, before it is considered stale.
*
* <p>A negative or zero value indicates no age restriction. The default value is 15 minutes.
*/
public long getMaxRequestAge() {
return getVerifier().getMaxRequestAge();
Expand All @@ -81,45 +69,40 @@ public AwsVerifier getVerifier() {
}

/**
* Returns the secret verifier that will be wrapped by the real verifier
* supporting all the HTTP AWS verifications.
*
* Returns the secret verifier that will be wrapped by the real verifier supporting all the HTTP
* AWS verifications.
*
* @return the local wrapped verifier
*/
public LocalVerifier getWrappedVerifier() {
return getVerifier().getWrappedVerifier();
}

/**
* Sets the maximum age of a request, in milliseconds, before it is
* considered stale.
* <p>
* A negative or zero value indicates no age restriction. The default value
* is 15 minutes.
* Sets the maximum age of a request, in milliseconds, before it is considered stale.
*
* <p>A negative or zero value indicates no age restriction. The default value is 15 minutes.
*/
public void setMaxRequestAge(long value) {
getVerifier().setMaxRequestAge(value);
}

/**
* Sets the internal verifier. In general you shouldn't replace it but
* instead set the {@code wrappedVerifier} via the
* {@link #setWrappedVerifier(LocalVerifier)} method.
* Sets the internal verifier. In general, you shouldn't replace it but instead set the {@code
* wrappedVerifier} via the {@link #setWrappedVerifier(LocalVerifier)} method.
*/
@Override
public void setVerifier(Verifier verifier) {
if (!(verifier instanceof AwsVerifier))
throw new IllegalArgumentException();
if (!(verifier instanceof AwsVerifier)) throw new IllegalArgumentException();

super.setVerifier(verifier);
}

/**
* Sets the secret verifier that will be wrapped by the real verifier
* supporting all the HTTP AWS verifications.
*
* @param verifier
* The local verifier to wrap
* Sets the secret verifier that will be wrapped by the real verifier supporting all the HTTP
* AWS verifications.
*
* @param verifier The local verifier to wrap
*/
public void setWrappedVerifier(LocalVerifier verifier) {
getVerifier().setWrappedVerifier(verifier);
Expand Down
Loading
Loading