@Override
    public boolean test(AmazonServiceException ase) {
        if (ase == null || ase.getErrorMessage() == null) {
            return false;
        }
        if (AUTH_ERROR_CODES.contains(ase.getErrorCode())) {
            for (String possibleErrorMessage : AUTH_ERROR_MESSAGES) {
                if (ase.getErrorMessage().contains(possibleErrorMessage)) {
                    return true;
                }
            }
        }
        return false;
    }
@return True to retry with SigV4, false to not retry
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/IsSigV4RetryablePredicate.java